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