1 2 3 4 5 6 7 8
<?php class A { public function test(Foo $foo) {} } class B extends A { public function test(Bar $foo) {} } ?>