mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-19 15:45:43 +01:00
fix instanceof with expr
This commit is contained in:
parent
81386042a1
commit
9e4a956023
@ -47,7 +47,12 @@ final class IsArrayAndDualCheckToAble
|
||||
/** @var FuncCall $funcCallNode */
|
||||
[$instanceOfNode, $funcCallNode] = $matchedNodes;
|
||||
|
||||
if ((string) $instanceOfNode->class !== $type) {
|
||||
$instanceOfNodeClass = $instanceOfNode->class;
|
||||
if (! $instanceOfNodeClass instanceof Name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ((string) $instanceOfNodeClass !== $type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user