We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b6a92 commit c650ed3Copy full SHA for c650ed3
1 file changed
src/Parser/CleaningVisitor.php
@@ -15,7 +15,7 @@ public function enterNode(Node $node): ?Node
15
return $node;
16
}
17
18
- if ($node instanceof Node\Stmt\ClassMethod) {
+ if ($node instanceof Node\Stmt\ClassMethod && $node->stmts !== null) {
19
$node->stmts = [];
20
21
0 commit comments