早睡早起,方能养生!
Sleep early rise early, square can preserve one's health!

ThinkPHP5.1.39 报错 "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

super
2021-09-22 10:09
views 130

composer包:

 

composer require phpoffice/phpexcel

 

PHP版本:7.4

 

解决方式:

 

1)修改PHP版本为:7.1 / 7.2

 

2)修改文件

 

 

line 288:

 

 

将 continue; 修改为 break;

 

修改后,无bug产生,可正常读取excel数据

 


分享
0 条讨论
top