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
fix: Support shebang in fixers operating on PHP opening tag #7687
Conversation
36f0af3
to
d453856
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.
I did not review changes in the actual fixer, I'll continue after concerns related to tests are resolved.
PS. I prefer explicit with
/ without
instead of /w
/ /wo
in test cases' names, but it's not something I will fight for 😉.
4040754
to
0ec249e
Compare
I relanded the original behaviour. I do not however see any benefit by considering T_OPEN_TAG_WITH_ECHO as monotonic (one script file) as most of the fixers does not support it. Maybe they miss the support. IDK. see last commit - it makes things ugly and inconsistent (to match original design), but you decide, I would revert the last commit |
b925b40
to
0254e4b
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.
Not complete review, but feedback for "ugly" changes 😉.
0254e4b
to
874b011
Compare
@Wirone is there any feedback left? |
@mvorisek I don't know, I did not have time to look at it yet 🤷♂️. |
35fe0bd
to
c60d118
Compare
Kindly ping @Wirone, the current master/release is broken. |
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 pretty good overall 👍
Maybe the title of the PR should be updated as the scope of changes is not limited to declare_strict_types
f0e8f5f
to
4acbce1
Compare
declare_strict_types
must work with shebang361d88f
to
7dca284
Compare
Thanks @mvorisek 🍻 |
Thank you @mvorisek 🎉 |
fix #7634 (and #7681 duplicate)