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
First of all, I really want to thank you for continuing working on PHP-Parser! It's been a really useful tool for several of my projects.
I just tried out 3.0.0 and found probably a bug with new handling of List_. Take this example (https://3v4l.org/8TeXR):
$someArray = ['foo', 'bar', 'ipsum', ['baz', 'dolor']]; list($listedOne, , $listedTwo['two'], list($listedThree, $listedFour['four'])) = $someArray;
There's a nested list() calls. I'd expect the first top list() to contain array of ArrayItems, but mine contains in this case:
ArrayItem NULL (expected, but not said in the typehint of List_::$items) ArrayItem List_
I'd expect them to all be ArrayItem. In the case of the nested List_, I'd like to be an ArrayItem with List_ in its $value property.
The text was updated successfully, but these errors were encountered:
Thanks for catching this so quickly! Fixed in 3e158a2 and released as v3.0.1.
Sorry, something went wrong.
@nikic By the way, this is the project I use PHP-Parser on: https://medium.com/@ondrejmirtes/phpstan-2939cd0ad0e3 (https://github.com/phpstan/phpstan) :)
No branches or pull requests
First of all, I really want to thank you for continuing working on PHP-Parser! It's been a really useful tool for several of my projects.
I just tried out 3.0.0 and found probably a bug with new handling of List_. Take this example (https://3v4l.org/8TeXR):
There's a nested list() calls. I'd expect the first top list() to contain array of ArrayItems, but mine contains in this case:
I'd expect them to all be ArrayItem. In the case of the nested List_, I'd like to be an ArrayItem with List_ in its $value property.
The text was updated successfully, but these errors were encountered: