<?php class Foo { public static function new() : self { return new self(func_get_args()); } } var_dump(Foo::new());
You have javascript disabled. You will not be able to edit any code.