mirror of
https://github.com/danog/Valinor.git
synced 2025-01-10 06:38:24 +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; } ``` |
||
---|---|---|
.. | ||
Repository | ||
AttributesContainerTest.php | ||
ClassDefinitionTest.php | ||
ClassSignatureTest.php | ||
CombinedAttributesTest.php | ||
DoctrineAnnotationsTest.php | ||
EmptyAttributesTest.php | ||
MethodDefinitionTest.php | ||
MethodsTest.php | ||
NativeAttributesTest.php | ||
ParameterDefinitionTest.php | ||
ParametersTest.php | ||
PropertiesTest.php | ||
PropertyDefinitionTest.php |