<?php class C { public function f ( $foo ) { var_dump($foo instanceof static); } } class D extends C { } $c = new C(); $c->f(new D()); $d = new D(); $d->f($d); $d->f($c);
You have javascript disabled. You will not be able to edit any code.