-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Description
Symfony version(s) affected
7.3.2
Description
We define type aliases in phpstan's config file like this:
parameters:
typeAliases:
\Type\Language: 'value-of<\App\Locale\Languages::LOCALES>'
Then these can be used in the classes as you can see below, but PropertyInfo does not understand this and complains about \Type\Language not existing. If somehow possible to configure additional aliases to be loaded (phpstan can import php files too so we could make this a reusable type-aliases.php file that both phpstan and symfony load) or a path to the phpstan config file that would be great.
/**
* @phpstan-type UserAttributes array{
* language?: \Type\Language
* }
*/
Possible Solution
No response
Additional Context
No response