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