lint/php-7.4/prefer-arrow-function
In the lint-strict preset. In Rector’s rector/php74 set. Unsafe fix: it can change behavior. Runs only when [php] version is 7.4 or later.
What it does
Change closure to arrow function
Configuration
[lint.rules]
"php-7.4/prefer-arrow-function" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
ClosureToArrowFunction(rector)