首页 新闻 会员 周边 捐助

PHP8.18使用PHPExcel报错During inheritance of Iterator: Uncaught think\exception\ErrorException:

0
悬赏园豆:50 [已解决问题] 解决于 2023-02-02 11:05

During inheritance of Iterator: Uncaught think\exception\ErrorException: Return type of PHPExcel_WorksheetIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\phpstudy_pro\WWW\tp_cGbCnn\tp\vendor\phpoffice\phpexcel\Classes\PHPExcel\WorksheetIterator.php:76
Stack trace:

0 D:\phpstudy_pro\WWW\tp_cGbCnn\tp\vendor\phpoffice\phpexcel\Classes\PHPExcel\WorksheetIterator.php(28): think\initializer\Error->appError(8192, 'Return type of ...', 'D:\phpstudy_pro...', 76)

1 D:\phpstudy_pro\WWW\tp_cGbCnn\tp\vendor\phpoffice\phpexcel\Classes\PHPExcel\Autoloader.php(79): require('D:\phpstudy_pro...')

CareyTao的主页 CareyTao | 初学一级 | 园豆:157
提问于:2023-02-01 18:25
< >
分享
最佳答案
0
收获园豆:50
dudu | 高人七级 |园豆:30255 | 2023-02-01 18:51

感谢大神,参考后解决了

CareyTao | 园豆:157 (初学一级) | 2023-02-02 11:03
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册