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