Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php /** * @template V */ final class Collection { /** * @param list<V> $items */ public function __construct(public array $items) {} } interface Foo {} interface Bar extends Foo {} interface Baz extends Foo {} function createBar(): Bar { throw new RuntimeException(); } function createBaz(): Baz { throw new RuntimeException(); } final class Ctx { /** @var Collection<Foo> */ public Collection $items; public function __construct() { $this->items = new Collection([createBar(), createBaz()]); } }
Issues
Types
idle
Saved Jan 26 2022 10:31 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue