mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-26 12:52:36 +00:00
add static call check
This commit is contained in:
parent
5371a84cb1
commit
03cf74ce31
|
@ -8,6 +8,7 @@ use PhpParser\Node;
|
|||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\Closure;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Function_;
|
||||
|
@ -92,7 +93,7 @@ PHP
|
|||
continue;
|
||||
}
|
||||
|
||||
if (! $stmt->var instanceof MethodCall) {
|
||||
if (! $stmt->var instanceof MethodCall && ! $stmt->var instanceof StaticCall) {
|
||||
$currentStmtVariableName = $this->getName($stmt->var);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user