HDTuto.com

Fixed - "continue" targeting switch is equivalent to "break". Did you mean to use " continue 2"?



we will resolve ErrorException error "continue" targeting switch is equivalent to "break" in php laravel on my ubuntu. we can reinstall composer to fixed continue targeting switch is equivalent to break issue.

When i was working on my ubuntu 14 and i update into ubuntu 16 at that time my php is also updated and it becomes 7.3. so when i install my laravel project and doing composer install i got this error '"continue" targeting switch is equivalent to "break".'.

After i trying to find, how we can solve this issue. after google search i found problem solution to reinstall composer on my ubuntu.

So you can run following command to reinstall composer and solution of continue targeting switch is equivalent to break laravel php issue.

Solution Commands:

sudo apt-get remove composer

sudo apt autoremove

sudo curl -s https://getcomposer.org/installer | php

sudo mv composer.phar /usr/local/bin/composer

Now you can check it.

I hope it can help you....




July 14, 2019 | Category : PHPLaravel
Related Posts



Blog Search