之前使用phpexcel导出功能一直正常,今天php版本从5.6升级到7.2后突然导出功能报错如下:
经查原因是phpexcel在php7之后的版本已经不维护了
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
所以最好换成phpspreadsheet就可以兼容php更高的版本;当然也可以根据报错信息去修改phpexcel中的OLE.php中的288行将continue改成break或者continue2