close

[Solved] Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2” Error Occurs?

Today I get the following error Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in php.

How To Solve Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2” Error ?

  1. How To Solve Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2” Error ?

    To Solve Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2” Error I've got same problem and got this error too, but in my case this error shows when i'm trying to run composer install or composer update.

  2. Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?

    To Solve Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2” Error I've got same problem and got this error too, but in my case this error shows when i'm trying to run composer install or composer update.

Solution 1

I’ve got same problem and got this error too, but in my case this error shows when i’m trying to run composer install or composer update.

and i solve this issue by running composer self-update. it works on my project.

Solution 2

I upgraded to PHP 7.3, and None of these worked for me before I used,

sudo wget https://getcomposer.org/download/1.8.0/composer.phar -O /usr/local/bin/composer && sudo chmod 755 /usr/local/bin/composer

It’s just the version dependency. PHP 7.3

and composer update worked like a charm!

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment