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

BCFile::findStartOfStatement(): sync in new tests from upstream + add extra tests #350

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 15, 2022

BCFile::findStartOfStatement(): add tests for upstream bugfix for switch handling

When inside a switch case/default break/continue/return/exit/throw statement, the start of the statement was not correctly determined.

This adds unit tests safeguarding the upstream change.

Refs:

BCFile::findStartOfStatement(): sync in new tests from upstream

Refs:

…tch handling

When inside a `switch` `case`/`default` `break`/`continue`/`return`/`exit`/`throw` statement, the start of the statement was not correctly determined.

This adds unit tests safeguarding the upstream change.

Refs:
* squizlabs/php_codesniffer 3192
* squizlabs/PHP_CodeSniffer 3186
@jrfnl jrfnl force-pushed the bctokens/findstartofstatement-sync-with-upstream branch from 81c6e9e to 79c1720 Compare October 17, 2022 07:56
@jrfnl jrfnl force-pushed the bctokens/findstartofstatement-sync-with-upstream branch from 79c1720 to c4a5f51 Compare October 17, 2022 08:33
@jrfnl jrfnl merged commit 79164c6 into develop Oct 17, 2022
@jrfnl jrfnl deleted the bctokens/findstartofstatement-sync-with-upstream branch October 17, 2022 08: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.

None yet

1 participant