lint/style/prefer-arrow-function
In the modernize set. Unsafe fix: it can change behaviour.
What it does
Anonymous functions with return as the only statement must use arrow functions.
Configuration
[lint.rules]
"style/prefer-arrow-function" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
use_arrow_functions(php-cs-fixer, risky)prefer-arrow-function(mago-linter)