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

Incorrect auto-fixing in Generic.ControlStructures.InlineControlStructure during live coding #2989

Merged
merged 1 commit into from
Sep 21, 2020

Commits on Jun 17, 2020

  1. Fix InlineControlStructureSniff adding brackets when there is already…

    … a bracket
    
    While live coding, there might not only be an incomplete `if ():` at the end of a file, it might as well be an incomplete `if () {`. The most minimal example I found is `<?php if ( 1 ) { break;`. The auto-fix currently turns this into `<?php if ( 1 ) { { { { { { { { { { { { { { { { { { { { { { { { { { break;}}}}}}}}}}}}}}}}}}}}}}}}}`. 😲
    thiemowmde committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    898d911 View commit details
    Browse the repository at this point in the history