git-web-client icon indicating copy to clipboard operation
git-web-client copied to clipboard

Runtime exception | php 7.3

Open BoyMechanicus opened this issue 5 years ago • 3 comments

Error encountered in install composer install

 [Symfony\Component\Debug\Exception\ContextErrorException]
  Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
 [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:

    [Symfony\Component\Debug\Exception\ContextErrorException]
    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

BoyMechanicus avatar Sep 10 '19 09:09 BoyMechanicus

check.php reported the install is ready to go despite that message but... trying to create the database yields

  [Symfony\Component\Debug\Exception\ContextErrorException]
  Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

would composer update fix this?

BoyMechanicus avatar Sep 13 '19 21:09 BoyMechanicus

Same for me. Cannot track in which file the problem exists. There was a problem with composer here: https://github.com/composer/composer/issues/7783#issuecomment-462306526 but it didn't help in all aspects.

What to do ? Where can I find it ? Is it a "continue" to "break" change ?

elvisef avatar Sep 15 '19 09:09 elvisef

The workaround I've used is to go back to 7.2 version of PHP - and it works like a charm.

elvisef avatar Sep 15 '19 10:09 elvisef