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