mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-27 13:13:31 +00:00
fix ThisCallOnStaticMethodToStaticCallRector in prefixed rector
This commit is contained in:
parent
2b9b01d574
commit
dd3db1d28b
|
@ -7,7 +7,6 @@ namespace Rector\Php70\Rector\MethodCall;
|
|||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\Variable;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\RectorDefinition\CodeSample;
|
||||
use Rector\Core\RectorDefinition\RectorDefinition;
|
||||
|
@ -86,7 +85,7 @@ PHP
|
|||
return null;
|
||||
}
|
||||
|
||||
if ($this->isObjectType($node->var, TestCase::class)) {
|
||||
if ($this->isObjectType($node->var, 'PHPUnit\Framework\TestCase')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user