PHP教程

[PHP] 解决TP5 出现错误 "continue" targeting switch is equivalent to "break". Did you m

本文主要是介绍[PHP] 解决TP5 出现错误 "continue" targeting switch is equivalent to "break". Did you m,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

有个项目使用的thinkphp5

在php7.3以上当搭建起来后会报这个错误

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

 

修改

\application\common\controller\Backend.php

 

把这里的continue改成break

 

这篇关于[PHP] 解决TP5 出现错误 "continue" targeting switch is equivalent to "break". Did you m的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!