-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPStan type-aliases are converted to FQCN #1676
Comments
Will you prepare PR please? |
If the suggested fix is acceptable, gladly! :) |
Although, it came to my mind that is there a realistic scenario where |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you use type aliases by PHPStan, even if you use a
@phpstan-
prefixed annotation, like@phpstan-param
, theSlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation
rule auto-corrects it to a FQCN and with that ruins it.Suggested solution: Add
@phpstan-param,@phpstan-return,@phpstan-var
(any other?) to theignoredAnnotationNames
as sane defaults.The text was updated successfully, but these errors were encountered: