<?php class A { public function test(A $a) { var_dump($a); } } class B extends A { public function test(B $b) { parent::test($b); } } $a = new A; $b = new B; $b->test($a);
You have javascript disabled. You will not be able to edit any code.