File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
rules/CodeQuality/Rector/MethodCall Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 44
55namespace Rector \PHPUnit \CodeQuality \Rector \MethodCall ;
66
7+ use PhpParser \Node \Expr \FuncCall ;
78use PhpParser \Node ;
89use PhpParser \Node \ClosureUse ;
910use 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 ))) {
You can’t perform that action at this time.
0 commit comments