From 043e86ee5b0881c09cb5277ab53ca389c453d68b Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 5 Feb 2024 16:22:41 +0100 Subject: [PATCH] Update ParentClassNameCollectingNodeVisitor.php --- src/NodeVisitor/ParentClassNameCollectingNodeVisitor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NodeVisitor/ParentClassNameCollectingNodeVisitor.php b/src/NodeVisitor/ParentClassNameCollectingNodeVisitor.php index 1585950..ed56605 100644 --- a/src/NodeVisitor/ParentClassNameCollectingNodeVisitor.php +++ b/src/NodeVisitor/ParentClassNameCollectingNodeVisitor.php @@ -43,8 +43,8 @@ public function getParentClassNames(): array $namespacedClassNames = []; foreach($uniqueParentClassNames as $className) { try { - $reflection = new \ReflectionClass($className); - if ($reflection->isInternal()) { + $reflectionClass = new \ReflectionClass($className); + if ($reflectionClass->isInternal()) { continue; } $namespacedClassNames[] = $className;