Skip to content

Commit c650ed3

Browse files
committed
Fix
1 parent 67b6a92 commit c650ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parser/CleaningVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function enterNode(Node $node): ?Node
1515
return $node;
1616
}
1717

18-
if ($node instanceof Node\Stmt\ClassMethod) {
18+
if ($node instanceof Node\Stmt\ClassMethod && $node->stmts !== null) {
1919
$node->stmts = [];
2020
return $node;
2121
}

0 commit comments

Comments
 (0)