Skip to content

Conversation

@samsonasik
Copy link
Contributor

@samsonasik samsonasik commented Oct 26, 2025

@TomasVotruba this PR add test and fix for rector case:

which currently we tweak via token there, that would be great if can be fixed in php-parser printer itself.

Ref https://3v4l.org/p6XC3

@samsonasik samsonasik changed the title Replace args with VariadicPlaceholder should remove trailing comma Reproducer Test Replace args with VariadicPlaceholder should remove trailing comma Oct 26, 2025
@samsonasik samsonasik changed the title Reproducer Test Replace args with VariadicPlaceholder should remove trailing comma fix: Replace args with VariadicPlaceholder should remove trailing comma Oct 26, 2025
@samsonasik
Copy link
Contributor Author

@nikic @TomasVotruba I've applied fix 👍 Ready for review/merge 👍

@samsonasik samsonasik force-pushed the variadic-no-trailing-comma branch from 5f9899c to 5e60691 Compare October 27, 2025 03:29
@samsonasik
Copy link
Contributor Author

@TomasVotruba I've moved test under test/code/formatPreservation directory 5e60691

The patch seems still needs on token level tho as far as I can understand.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant