Skip to content
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

Generic/InlineControlStructure: bug fix #2567

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jul 24, 2019

Prevent creating incorrect fixes and getting into a fixer conflict when both short and long open tags are used in combination with alternative control structures and the short open tags are not recognized because the system on which the scan is run has short_open_tag=Off.

Solved by bowing out early when an alternative control structure is detected which was not recognized as such (scope_opener not set).

Fixes #2565

Prevent creating incorrect fixes and getting into a fixer conflict when both short and long open tags are used in combination with alternative control structures and the short open tags are not recognized because the system on which the scan is run has `short_open_tag=Off`.

Solved by bowing out early when an alternative control structure is detected which was not recognized as such (`scope_opener` not set).

Fixes 2565
@gsherwood
Copy link
Member

Thanks for looking into this, and fixing it.

@jrfnl
Copy link
Contributor Author

jrfnl commented Jul 25, 2019

You're welcome. Sorry for the forgotten var_dump() 😨

@jrfnl jrfnl deleted the feature/2565-generic-inlinecontrolstructure-bugfix branch July 25, 2019 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generic.ControlStructures.InlineControlStructure confused by mixed short/long tags
2 participants