We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb0a6e commit 66fd9c2Copy full SHA for 66fd9c2
1 file changed
rules/Privatization/VisibilityGuard/ParentClassMagicCallGuard.php
@@ -4,6 +4,7 @@
4
5
namespace Rector\Privatization\VisibilityGuard;
6
7
+use PhpParser\Node\Name;
8
use PhpParser\Node\Expr;
9
use PhpParser\Node\Expr\MethodCall;
10
use PhpParser\Node\Stmt\Class_;
@@ -37,7 +38,7 @@ public function containsParentClassMagicCall(Class_ $class): bool
37
38
return $this->cachedContainsByClassName[$className];
39
}
40
- if ($class->extends === null) {
41
+ if (!$class->extends instanceof Name) {
42
return false;
43
44
0 commit comments