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