type error: argument 1 passed to symfonycomponenthttpfoundationresponseheaderbag::setcookie() must be an instance of symfonycomponenthttpfoundationcookie, string given, called in /data/www/www.test.com/vendor/illuminate/http/responsetrait.php on line 83
这个错误,怎么导致的啊
86CMS企业网站系统为智能ASP网站管理程序,适合中小企业自建网站、二次开发使用。本程序具有体积小巧、程序文件结构严谨、界面清爽简单、功能强大、非专业人士使用入门快、中小企业使用投资小等实用特点。本版本为中英繁版本。86CMS企业网站系统中英繁三语版 v1.2 更新1.修正英文版的flash幻灯调用出错问题。2.修正英文版导航菜单设置出错问题。3.增加信息是否显示在中英各版的功能。4.调整首页视
1
type error: argument 1 passed to symfonycomponenthttpfoundationresponseheaderbag::setcookie() must be an instance of symfonycomponenthttpfoundationcookie, string given, called in /data/www/www.test.com/vendor/illuminate/http/responsetrait.php on line 83
这个错误,怎么导致的啊
錯誤就講明了:參數是需要 Symfony\Component\HttpFoundation\Cookie 你卻丟 string
正確用法應該是:
<code class="php">use Symfony\Component\HttpFoundation\Cookie;
$response->headers->setCookie(new Cookie('foo', 'bar'));
</code>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号