Skip to content

Commit a7cd36f

Browse files
committed
fix
1 parent 71b7a13 commit a7cd36f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rules/PHPUnit120/Rector/CallLike/CreateStubOverCreateMockArgRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ public function refactor(Node $node): MethodCall|StaticCall|New_|ArrayItem|null
105105

106106
$hasChanges = false;
107107

108+
if ($node->isFirstClassCallable()) {
109+
return null;
110+
}
111+
108112
foreach ($node->getArgs() as $arg) {
109113
if (! $arg->value instanceof MethodCall) {
110114
continue;

0 commit comments

Comments
 (0)