Skip to content

Commit 3fa749d

Browse files
committed
misc
1 parent f838367 commit 3fa749d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/CodeQuality/Rector/MethodCall/WithCallbackIdenticalToStandaloneAssertsRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\PHPUnit\CodeQuality\Rector\MethodCall;
66

7+
use PhpParser\Node\Expr\FuncCall;
78
use PhpParser\Node;
89
use PhpParser\Node\ClosureUse;
910
use PhpParser\Node\Expr;
@@ -118,7 +119,7 @@ public function refactor(Node $node): MethodCall|null
118119
$innerSoleExpr = $this->matchInnerSoleExpr($argAndFunctionLike->getFunctionLike());
119120
if ($innerSoleExpr instanceof BooleanAnd) {
120121
$joinedExprs = $this->extractJoinedExprs($innerSoleExpr);
121-
} elseif ($innerSoleExpr instanceof Identical || $innerSoleExpr instanceof Instanceof_ || $innerSoleExpr instanceof Isset_ || ($innerSoleExpr instanceof Expr\FuncCall && $this->isName(
122+
} elseif ($innerSoleExpr instanceof Identical || $innerSoleExpr instanceof Instanceof_ || $innerSoleExpr instanceof Isset_ || ($innerSoleExpr instanceof FuncCall && $this->isName(
122123
$innerSoleExpr->name,
123124
'array_key_exists'
124125
))) {

0 commit comments

Comments
 (0)