Skip to content

Conversation

@samsonasik
Copy link
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
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
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
Member Author

I will try

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.

3 participants