Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php /** * @template T of object */ abstract class Factory { /** * @param T $object * @return Proxy<T> */ final public function create(object $object): mixed { return new Proxy($object); } } /** * @extends Factory<SomeObject> * @method SomeObject|Proxy create(SomeObject $object) */ class ChildFactory extends Factory {} /** * @template T of object * @mixin T */ class Proxy { /** * @param T $object */ public function __construct( private object $object ) { } } class SomeObject{}
Issues
Types
idle
Saved Jun 16 2023 08:25 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue