Skip to content

Commit 4f32e25

Browse files
committed
[ci-review] Rector Rectify
1 parent 4e5681d commit 4f32e25

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

rules/TypeDeclaration/Rector/ClassMethod/ParamTypeByMethodCallTypeRector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ public function refactor(Node $node): ?Node
126126
);
127127

128128
// keep only callers with args
129-
$callersWithArgs = array_filter($callers, function (StaticCall|MethodCall|FuncCall $caller): bool {
130-
return $caller->args !== [];
131-
});
129+
$callersWithArgs = array_filter($callers, fn(StaticCall|MethodCall|FuncCall $caller): bool => $caller->args !== []);
132130

133131
if ($callersWithArgs === []) {
134132
return null;

0 commit comments

Comments
 (0)