<?php Interface I{ public static function init(?string $url): self; } class C implements I{ public static function init(?string $url): self{ return new self(); } } $o = C::init("foo"); var_dump($o);
You have javascript disabled. You will not be able to edit any code.