We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list
I discovered today that the parser fails with an "index out of range" runtime error when it encounters the following PHP code:
<?php $things = ["foo", "bar"]; list(, $bar) = $things;
Surprisingly, this is valid PHP code (running it results in bar).
bar
php-parser gets really unhappy about the lack of a first argument though:
panic: runtime error: index out of range
I almost feel bad reporting this because it's such bad PHP code, but it's nonetheless valid and should probably at least not crash the parser.
The text was updated successfully, but these errors were encountered:
#44: fix crash on an empty list item
10c63a3
#44: do not trim last nil if array item list ends by a comma
290645f
There was a bug. I tried to save comments to nil element.
Now parser does not trim first nil, which represents the missed item. Also, it does not trim last nil if array item list ends by a comma.
Sorry, something went wrong.
z7zmey
No branches or pull requests
I discovered today that the parser fails with an "index out of range" runtime error when it encounters the following PHP code:
Surprisingly, this is valid PHP code (running it results in
bar
).php-parser gets really unhappy about the lack of a first argument though:
I almost feel bad reporting this because it's such bad PHP code, but it's nonetheless valid and should probably at least not crash the parser.
The text was updated successfully, but these errors were encountered: