analyse/attributes/invalid
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"attributes/invalid" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
NonClassAttributeClassRule(phpstan-classes)AbstractClassUsedAsAttribute(mago-analyzer)AttributeNotRepeatable(mago-analyzer)ClassNotMarkedAsAttribute(mago-analyzer)InvalidAttributeTarget(mago-analyzer)NonClassUsedAsAttribute(mago-analyzer)attribute.abstract(phpstan)attribute.class(phpstan)attribute.constructorNotPublic(phpstan)attribute.enum(phpstan)attribute.interface(phpstan)