如图:

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

 

 

 

解决办法:

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

找到:创建Response对象

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

 

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

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-11-16
  • 2022-02-27
  • 2022-01-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案