z7zmey / php-parser

PHP parser written in Go
https://php-parser.com
MIT License
941 stars 63 forks source link

Do not override Stmts in printNodeRoot() #109

Closed azhai closed 4 years ago

azhai commented 4 years ago

Test it like this:

cd printer
go test -v --run=TestPrintFile

If you override Stmts with Stmts[1:] , it will be empty at last.