File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
rules/CodeQuality/NodeAnalyser Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77use PhpParser \Node \Expr \MethodCall ;
88use PhpParser \Node \Expr \StaticCall ;
99use PHPStan \Reflection \ClassReflection ;
10+ use PHPStan \Type \ObjectType ;
1011use Rector \NodeNameResolver \NodeNameResolver ;
1112use Rector \NodeTypeResolver \NodeTypeResolver ;
1213use Rector \PHPUnit \CodeQuality \Enum \NonAssertStaticableMethods ;
@@ -28,7 +29,7 @@ public function detectTestCaseCall(MethodCall|StaticCall $call): bool
2829 ? $ call ->var
2930 : $ call ->class ;
3031
31- if (! $ this ->nodeTypeResolver ->isObjectType ($ objectCaller , new \ PHPStan \ Type \ ObjectType ('PHPUnit\Framework\TestCase ' ))) {
32+ if (! $ this ->nodeTypeResolver ->isObjectType ($ objectCaller , new ObjectType ('PHPUnit\Framework\TestCase ' ))) {
3233 return false ;
3334 }
3435
You can’t perform that action at this time.
0 commit comments