analyse/types/readonly-property-write
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/readonly-property-write" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ReadOnlyPropertyAssignRule(phpstan-classes)InvalidPropertyWrite(mago-analyzer)assign.readOnlyProperty(phpstan)property.readOnlyAssignNotInConstructor(phpstan)property.readOnlyAssignNotOnThis(phpstan)property.readOnlyAssignOutOfClass(phpstan)