Home Forums Themes Support How to fix Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in

Tagged: ,

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4582

    Hi all customer,

    When you use WordPress and update to PHP 7.3 version, maybe you will get this warning:

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

    In this case the solution is reinstall composer on ubuntu.

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

    sudo apt-get remove composer

    sudo apt autoremove

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

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

    Hope this help you all!

    Reference:

    https://github.com/botman/botman/issues/945

    https://getcomposer.org/download/

     

    ******
    Best regards,

    HaruTheme

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.