Skip to content

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented May 11, 2021

Multi-catch and finally statements were not taken into account when determining the end of the statement within an inline control structure.

Fixed now.

Includes unit tests.

Fixes #3345

Multi-catch and `finally` statements were not taken into account when determining the end of the statement within an inline control structure.

Fixed now.

Includes unit tests.

Fixes 3345
@PierreAntoineGuillaume
Copy link

Hey @gsherwood , just to make sure but, I wasn't relevant to review this PR right ?

Any place I can find your review process ?

@gsherwood
Copy link
Member

I wasn't relevant to review this PR right ?

Nope, I'll review it when I get time. Happy for you or others to test and give your opinion though.

@PierreAntoineGuillaume
Copy link

I tested it, it indeed fixes the bug

gsherwood added a commit that referenced this pull request May 27, 2021
@gsherwood gsherwood merged commit 0aec4c3 into squizlabs:master May 27, 2021
@gsherwood
Copy link
Member

Thanks for fixing this

@jrfnl jrfnl deleted the feature/3345-generic-inlinecontrolstructures-bugfix-multicatch-finally branch May 27, 2021 11:54
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.

IF statement with no braces and double catch turned into syntax error by auto-fixer

3 participants