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

"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2" #110

Closed
dac514 opened this issue Dec 14, 2018 · 1 comment · Fixed by #88
Closed
Assignees

Comments

@dac514
Copy link
Contributor

dac514 commented Dec 14, 2018

When using PHP 7.3 (and nightly builds) I am seeing:

--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | ERROR | An error occurred during processing; checking has been aborted. The
   |       | error message was: "continue" targeting switch is equivalent to "break".
   |       | Did you mean to use "continue 2"? in
   |       | /home/travis/build/[secure]/[secure]/vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php
   |       | on line 746 (Internal.Exception)
--------------------------------------------------------------------------------

This is supposed to be fixed in 3.3.1, see:

squizlabs/PHP_CodeSniffer#2087

Is it possible to upgrade? See:

@mikeselander
Copy link
Contributor

mikeselander commented Dec 18, 2018

@connerbw we're working on upgrading PHPCS and v3.3.1 of PHPCS should be included in v0.6 when we release it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants