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