Skip to content

Commit df5ce9d

Browse files
committed
Fix lost namespace
1 parent d1251b1 commit df5ce9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractor/extract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private function compareStatements(Node\Stmt $old, Node\Stmt $new, string $updat
332332
throw new \LogicException('Namespace name changed');
333333
}
334334

335-
return $this->compareStatementsInNamespace($old->stmts, $new->stmts, $updateTo);
335+
return [new Node\Stmt\Namespace_($old->name, $this->compareStatementsInNamespace($old->stmts, $new->stmts, $updateTo))];
336336
} elseif (!$old instanceof Node\Stmt\Namespace_ && !$new instanceof Node\Stmt\Namespace_) {
337337
return $this->compareStatementsInNamespace([$old], [$new], $updateTo);
338338
}

0 commit comments

Comments
 (0)