Skip to content

Commit 82a62e9

Browse files
committed
Fix
1 parent 1591bd7 commit 82a62e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rules/CodeQuality/Rector/Expression/DecorateWillReturnMapWithExpectsMockRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ public function refactor(Node $node)
114114

115115
// count values in will map arg
116116
$willReturnMapArg = $methodCall->getArgs()[0] ?? null;
117+
if (! $willReturnMapArg instanceof Arg) {
118+
return null;
119+
}
120+
117121
if (! $willReturnMapArg->value instanceof Array_) {
118122
return null;
119123
}

0 commit comments

Comments
 (0)