简体   繁体   中英

ContextErrorException, “continue” targeting switch is equivalent to “break”

I migrate to MacOS Catalina and now I have this Symfony issue on php bin/console c:c , but in fact whatever console command.

request.CRITICAL: Exception thrown when handling an exception (Symfony\Component\Debug\Exception\ContextErrorException: Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? at .../vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php line 2636) {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ContextErrorException(code: 0): Warning: \"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"? at .../vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2636)"}

Any ideas?

Composer version 1.9.0

I finally downgrade to php 7.1 and reinstall dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM