tp5 类型错误: Argument 1 passed to think\response\Html::__construct() must be an instance of think\Cookie, string given, called in F:\www\dapp\thinkphp\library\think\Response.php on line 74

类型错误: Argument 1 passed to think\response\Html::__construct() must be an instance of think\Cookie, string given, called in F:\www\dapp\thinkphp\library\think\Response.php on line 74

 如图:

 

 

 

解决办法:

找到并打开:thinkphp\library\think\Response.php 文件

找到:创建Response对象

 

 在class_exists($class) 后面加上 && is_array($data)  即可

 

posted @ 2021-09-13 10:36  zwb_121  阅读(2446)  评论(0编辑  收藏  举报