mirror of
https://github.com/danog/Valinor.git
synced 2025-01-10 06:38:24 +01:00
56142dea5b
Type aliases can now be added to a class definition. Both PHPStan and Psalm syntax are handled. ```php /** * @phpstan-type SomeTypeAlias = array{foo: string} * @psalm-type SomeOtherTypeAlias = array{bar: int} */ final class SomeClass { /** @var SomeTypeAlias */ public array $someTypeAlias; /** @var SomeOtherTypeAlias */ public array $someOtherTypeAlias; } ``` |
||
---|---|---|
.. | ||
ReflectionClassDefinitionRepositoryTest.php |