mirror of
https://github.com/danog/Valinor.git
synced 2024-11-27 04:34:48 +01:00
fa3ce50dfb
Type aliases can now be imported from another class definition. Both PHPStan and Psalm syntax are handled. ```php /** * @phpstan-type SomeTypeAlias = array{foo: string} */ final class SomeClass { /** @var SomeTypeAlias */ public array $someTypeAlias; } /** * @phpstan-import-type SomeTypeAlias from SomeClass */ final class SomeOtherClass { /** @var SomeTypeAlias */ public array $someTypeAlias; } ``` |
||
---|---|---|
.. | ||
Fake | ||
Fixture | ||
Functional | ||
Integration | ||
Traits | ||
Unit |