Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php declare(strict_types=1); namespace DL2\PsalmIssue; /** * @psalm-type TFoo = 'A'|'B'|'C' */ class A { } /** * @psalm-import-type TFoo from A * * @psalm-type TError = array{ * foo: TFoo * } */ class B { /** * @var array * @psalm-var ?TError */ public $error; }
Snippet created on August 17 2020 at 02:46 UTC
Settings
Get link