<?php class Foo { public function xx(): string { return 'x'; } } class Bar extends Foo { public function xx() { return 'yy'; } } echo (new Bar())->xx();
You have javascript disabled. You will not be able to edit any code.