You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is why it is not wise to use a phpstan-only type alias in @param instead of using @phpstan-param, as it breaks tools that support reading phpdoc without being aware of the phpstan type aliases.
There is no way to know that @param AspectRatio|null $aspectRatio is not referring to an AspectRatio class for such tool, as it could totally be the meaning it has if there was no type alias.
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
7.2
Description
Hi,
I'm facing weird issue in SF 7.2. Using local-aliases (https://phpstan.org/writing-php-code/phpdoc-types#local-type-aliases) with
@phpstan-type
is badly resolved by extractors.How to reproduce
Resulted in this output:
But I expected this output instead:
Possible Solution
Exactly the same result is expected when we set
PropertyInfoExtrator
totypeExtractors: [new ReflectionExtractor()]
.I don't know how to fix this, but I guess this bug is maybe related with
phpstan/phpdoc-parser
by #58800Thanks for help!
Additional Context
No response
The text was updated successfully, but these errors were encountered: