Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a792bcc

Browse files
committed
Beautify LNumber to decimal
1 parent 6942fc5 commit a792bcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NodeVisitors/BeautifyNodeVisitor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public function leaveNode(Node $node)
1717
} elseif ($node instanceof Node\Expr\New_
1818
&& $node->class instanceof Node\Scalar\String_) {
1919
$node->class = new Node\Name($node->class->value);
20+
} elseif ($node instanceof Node\Scalar\LNumber) {
21+
$node->setAttribute('kind', Node\Scalar\LNumber::KIND_DEC);
2022
}
2123
}
2224
}

0 commit comments

Comments
 (0)