Skip to content

Commit a0e55bf

Browse files
committed
Fix coding style
1 parent ea5ccb7 commit a0e55bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public function refactor(Node $node): Closure
100100
if (! $isFound) {
101101
$isAlsoParam = in_array(
102102
$node->expr->expr->name,
103-
array_map(function($param) {
104-
return $param->var instanceof Variable ? $param->var->name : null;
105-
}, $node->params)
103+
array_map(static fn ($param) => $param->var instanceof Variable ? $param->var->name : null, $node->params)
106104
);
107105

108106
if (! $isAlsoParam) {

0 commit comments

Comments
 (0)