Valinor/tests
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
..
Fake feat: handle type alias import in class definition 2021-12-07 18:20:04 +01:00
Fixture feat: initial release 2021-11-28 18:21:56 +01:00
Functional feat: handle multiline type declaration 2021-12-01 09:45:33 +01:00
Integration feat: handle type alias import in class definition 2021-12-07 18:20:04 +01:00
Traits feat: initial release 2021-11-28 18:21:56 +01:00
Unit feat: handle type alias import in class definition 2021-12-07 18:20:04 +01:00