analyse/attributes/invalid-class-attribute
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"attributes/invalid-class-attribute" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ClassAttributesRule(phpstan-classes)class.allowDynamicPropertiesReadonly(phpstan)class.deprecatedAttribute(phpstan)enum.allowDynamicProperties(phpstan)enum.deprecatedAttribute(phpstan)interface.allowDynamicProperties(phpstan)interface.deprecatedAttribute(phpstan)trait.deprecatedAttribute(phpstan)