Skip to content

Commit

Permalink
Fix anonymous class
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 4, 2024
1 parent 644dbbc commit 4ce29a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public function getAnonymousClassReflection(Node\Stmt\Class_ $classNode, Scope $
$scopeFile,
);
$classNode->name = new Node\Identifier($className);
$classNode->namespacedName = null;

if (isset(self::$anonymousClasses[$className])) {
return self::$anonymousClasses[$className];
Expand Down

0 comments on commit 4ce29a7

Please sign in to comment.