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
When you use type aliases by PHPStan, even if you use a @phpstan- prefixed annotation, like @phpstan-param, the SlevomatCodingStandard.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 the ignoredAnnotationNames as sane defaults.
The text was updated successfully, but these errors were encountered:
Although, it came to my mind that is there a realistic scenario where @phpstan-param is used to specify a class/interface reference instead of @param? Is these a scenario where somebody would like to override what is in @param like this and that is also a class/interface reference? I hope not...
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: