analyse/classes/invalid-promoted-property
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/invalid-promoted-property" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
InvalidPromotedPropertiesRule(phpstan-classes)property.invalidPromoted(phpstan)property.promotedNotSupported(phpstan)