Skip to content
New issue

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

Bug with parsing list #137

Closed
alexander-akait opened this issue Mar 20, 2018 · 3 comments
Closed

Bug with parsing list #137

alexander-akait opened this issue Mar 20, 2018 · 3 comments

Comments

@alexander-akait
Copy link
Collaborator

alexander-akait commented Mar 20, 2018

Input:

list(,$power) = $info;
list($power) = $info;

Have same count of arguments

@ichiriac
Copy link
Member

Not sure yet, but it may come from an abusive usage of a too permissive reader implemented here https://github.com/glayzzle/php-parser/blob/master/src/parser/utils.js#L30

If it's the case, the problem can reproduced on others nodes, I need to check each read_list usage

@alexander-akait
Copy link
Collaborator Author

@ichiriac Can we fix it next? We have many problem in prettier-php with this construction, many people use this

@ichiriac
Copy link
Member

it's fixed - i will release an alpha 2 in few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants