Skip to content

Commit 93d288d

Browse files
committed
[rector] Rector fixes
1 parent e9bfa56 commit 93d288d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/PHPUnit120/Rector/CallLike/CreateStubOverCreateMockArgRector.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\CallLike;
66

7+
use PhpParser\Node\Expr\PropertyFetch;
78
use PhpParser\Node;
89
use PhpParser\Node\ArrayItem;
910
use PhpParser\Node\Expr;
@@ -159,7 +160,7 @@ private function refactorClassMethod(ClassMethod $classMethod): ?ClassMethod
159160
$assign = $stmt->expr;
160161

161162
// handled in another rule
162-
if ($assign->var instanceof Expr\PropertyFetch) {
163+
if ($assign->var instanceof PropertyFetch) {
163164
continue;
164165
}
165166

0 commit comments

Comments
 (0)