-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
feat: print flexible nowdoc #1291
Conversation
b6d3483
to
9091d6c
Compare
I took another look, and unfortunately couldn't figure out how to determine if the parent group breaks and indent accordingly. I removed the indentation for now, since this is already an improvement over the current printing. @evilebottnawi Do you have an idea how to implement this? #1274 (comment) |
Tests are failing because of #1292 |
fa78007
to
e9de64c
Compare
Tests are passing, i'll update the PR once glayzzle/php-parser#509 has landed 🚀 |
e9de64c
to
4440723
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Fixes #1292
Fixed #854
Turns out to be quite tricky to implement the rule suggested in #1274 (comment) - this is a simpler version.