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)  即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM