-
Notifications
You must be signed in to change notification settings - Fork 68
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
Don't output null
for last element in list/array
#174
Comments
You're right about stripping null items from the end |
fixed with this commit : a6519fd - released under 3.0.0-prerelease.4 |
@ichiriac looks |
/cc @ichiriac friendly ping, still exists 😄 |
😀 sorry, i'll check this next week, this week-end i'm bussy, not at home. I'll keep you in tuch |
@ichiriac 👍 Thanks! |
Hi, I could strip them, but without node you may loose comments, here an example : <?php
list($a, $b, /* arg3 */, /* arg 4 */) = [1,2,3,4]; It's better to introduce a Noop node that could bind at the right place the comment (could also be used on empty functions bodies in order to attach on it the comment |
👍 |
It's fixed & will be released soon |
@ichiriac maybe not right place, but just want put here with list problems for use prettier/plugin-php#854 |
php7.3 was released very long time age and we sill doesn't support many features |
Input:
Contain
null
inarguments
.Babylon example: https://astexplorer.net/#/gist/6d37953c6b42f02a3ffe48b6101127c3/745b62f49d2c011d789e6d9754a4d705db5cdab0
I think it is unnecessary, because it is doesn't have sense for executing/parsing/printing/etc.
The text was updated successfully, but these errors were encountered: