Valinor/tests/Unit/Definition
Romain Canon fa3ce50dfb feat: handle type alias import in class definition
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;
}
```
2021-12-07 18:20:04 +01:00
..
Repository feat: handle type alias import in class definition 2021-12-07 18:20:04 +01:00
AttributesContainerTest.php feat: initial release 2021-11-28 18:21:56 +01:00
ClassDefinitionTest.php feat: initial release 2021-11-28 18:21:56 +01:00
ClassSignatureTest.php feat: initial release 2021-11-28 18:21:56 +01:00
CombinedAttributesTest.php feat: initial release 2021-11-28 18:21:56 +01:00
DoctrineAnnotationsTest.php feat: initial release 2021-11-28 18:21:56 +01:00
EmptyAttributesTest.php feat: initial release 2021-11-28 18:21:56 +01:00
MethodDefinitionTest.php feat: initial release 2021-11-28 18:21:56 +01:00
MethodsTest.php feat: initial release 2021-11-28 18:21:56 +01:00
NativeAttributesTest.php feat: initial release 2021-11-28 18:21:56 +01:00
ParameterDefinitionTest.php feat: initial release 2021-11-28 18:21:56 +01:00
ParametersTest.php feat: initial release 2021-11-28 18:21:56 +01:00
PropertiesTest.php feat: initial release 2021-11-28 18:21:56 +01:00
PropertyDefinitionTest.php feat: initial release 2021-11-28 18:21:56 +01:00