Skip to content

Commit 858a124

Browse files
committed
[ci-review] Rector Rectify
1 parent 3b95fb3 commit 858a124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/Privatization/VisibilityGuard/ParentClassMagicCallGuard.php

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

55
namespace Rector\Privatization\VisibilityGuard;
66

7+
use PhpParser\Node\Name;
78
use PhpParser\Node\Expr;
89
use PhpParser\Node\Expr\MethodCall;
910
use PhpParser\Node\Stmt\Class_;
@@ -37,7 +38,7 @@ public function containsParentClassMagicCall(Class_ $class): bool
3738
return $this->cachedContainsByClassName[$className];
3839
}
3940

40-
if ($class->extends === null) {
41+
if (!$class->extends instanceof Name) {
4142
return false;
4243
}
4344

0 commit comments

Comments
 (0)