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