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" #2087

Closed
CMalvika opened this issue Jul 10, 2018 · 6 comments

Comments

@CMalvika
Copy link

Travis is failing on this issue for below files:

vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php:637
vendor/squizlabs/php_codesniffer/src/Files/File.php:1341

@jrfnl
Copy link
Contributor

jrfnl commented Jul 10, 2018

This has already been fixed via #2086. I suggest closing this issue.

@CMalvika
Copy link
Author

@jrfnl i guess the version isn't released yet!

@jrfnl
Copy link
Contributor

jrfnl commented Jul 10, 2018

@CMalvika Correct, the fix will be included in the upcoming 3.3.1 release.

@OneCodeMonkey
Copy link

face the same question too.

@jrfnl
Copy link
Contributor

jrfnl commented Jan 28, 2020

@OneCodeMonkey As stated above: upgrade your PHPCS version to 3.3.1 or higher.

@anshulsh13m
Copy link

You install the Latest PHPCS version (above 3.3.x).

Try the following command

uninstall the PHPCS
sudo apt-get autoremove --purge php-codesniffer

Install the new version of PHPCS
sudo apt install php-pear
sudo apt-get update -y
sudo pear install PHP_CodeSniffer-3.5.4

bhwilliamson added a commit to PennantConsulting/wp-dev-lib that referenced this issue May 28, 2020
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

No branches or pull requests

5 participants