analyse/functions/closure-uses-this
In the analyse-basic preset and every stricter one. Report only. Upstream gates: strictRules.closureUsesThis.
Configuration
[analyse.rules]
"functions/closure-uses-this" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ClosureUsesThisRule(phpstan-classes)