Skip to content

Commit

Permalink
Fix errors in tools
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Apr 28, 2024
1 parent cd2a4bd commit 717f5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConstantFixer/SimpleNodeTraverserAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function enterNode(Node $node)
switch (true) {
case $node instanceof Node\Stmt\Namespace_:
// entering namespace
if ($node->name && $node->name->parts) {
$this->namespace = implode('\\', $node->name->parts);
if ($node->name && $node->name->name) {
$this->namespace = $node->name->name;
} else {
$this->namespace = static::GLOBAL_NAMESPACE_MAGIC;
}
Expand Down

0 comments on commit 717f5c9

Please sign in to comment.