Skip to content

Commit 833fc46

Browse files
committed
[rector] Rector fixes
1 parent bd7ac99 commit 833fc46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\PHPUnit\PHPUnit120\Rector\Class_;
66

7+
use PhpParser\Node\Expr\Variable;
78
use PhpParser\Node;
89
use PhpParser\Node\Attribute;
910
use PhpParser\Node\AttributeGroup;
@@ -297,7 +298,7 @@ private function isMissingExpectsOnMockObjectMethodCallInSetUp(Class_ $class): b
297298
continue;
298299
}
299300

300-
if ($methodCall->var instanceof Node\Expr\Variable || $methodCall->var instanceof PropertyFetch) {
301+
if ($methodCall->var instanceof Variable || $methodCall->var instanceof PropertyFetch) {
301302
return true;
302303
}
303304
}

0 commit comments

Comments
 (0)