Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php interface Foo { /** * @return static */ public static function create(); } class Baz implements Foo { public static function create() :self{ return new self; } } function takesBaz(Baz $a):void{ print_r($a); } $a = Baz::create(); takesBaz($a);
Snippet created on April 26 2022 at 09:02 UTC
Settings
Get link