现在是报错信息
[1] ErrorException in Model.php line 40
During inheritance of JsonSerializable: Uncaught think\exception\ErrorException: Return type of think\Model::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/www/Enterprise_data/thinkphp/library/think/Model.php:1438
Stack trace:
查了网上没有找到对应的解决办法 现在没有思路
试了网上有关的 use think\Exception; 改为 use Exception没有解决
用的环境时xampp的apache环境2.4.52 php环境8.1.2 框架tp5.0