lint/performance/prefer-static-closure
Not in any set. Unsafe fix: it can change behaviour.
What it does
Lambdas not (indirectly) referencing $this must be declared static.
Configuration
[lint.rules]
"performance/prefer-static-closure" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
static_lambda(php-cs-fixer, risky)prefer-static-closure(mago-linter)