Skip to content

Bump nikic/php-parser to ^5.6.2 and Fix AttributeGroupNewLiner for already has new line#7531

Merged
samsonasik merged 5 commits intomainfrom
bump-nikic-php-parser562
Oct 22, 2025
Merged

Bump nikic/php-parser to ^5.6.2 and Fix AttributeGroupNewLiner for already has new line#7531
samsonasik merged 5 commits intomainfrom
bump-nikic-php-parser562

Conversation

@samsonasik
Copy link
Copy Markdown
Member

In nikic/php-parser 5.6.2, new line after attribute already detected, so before add new line, verify if new line exists first.

Ref #7530 (comment)

samsonasik referenced this pull request in nikic/PHP-Parser Oct 22, 2025
With the introduction of attributes, the visibility modifier isn't
always at the start of the node anymore. As such, preserve any
leaving whitespace.

Fixes #1117.
@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit deb6fd6 into main Oct 22, 2025
52 checks passed
@samsonasik samsonasik deleted the bump-nikic-php-parser562 branch October 22, 2025 02:33
@TomasVotruba
Copy link
Copy Markdown
Member

Ideally we should remove it from places it's not needed anymore, to improve performance on already correct items. Can you check all places we use the new liner service and remove it where no effect?

@samsonasik
Copy link
Copy Markdown
Member Author

I will try

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants