Skip to content

Commit

Permalink
#201 Ignore anonymous class compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Sep 5, 2023
1 parent 2b04c93 commit 21217d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private function validateClass(Class_ $class): void
*/
private function enterNodeClass(Node $node)
{
if ($node instanceof Class_) {
if ($node instanceof Class_ && $node->name !== null) {
$this->validateClass($node);
$this->class = $node;

Expand Down

0 comments on commit 21217d8

Please sign in to comment.