You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to serialize the cookies using the documentation on the /laminas-http/client/cookies/#serializing-and-caching-cookies page, I get the following error:
PHP Fatal error: Uncaught Error: Call to undefined method Laminas\Http\Header\SetCookie::__toString()
on Line 270 of /laminas/laminas-http/src/Cookies.php
This bug was never discovered and this apparently never worked since call to __toString() present since 2.0.0 and header never had __toString() in stable releases.
@kjdfjhdjkh I would recommend to utilize PSR-18 http client instead of this library.
Bug Report
Summary
When attempting to serialize the cookies using the documentation on the /laminas-http/client/cookies/#serializing-and-caching-cookies page, I get the following error:
PHP Fatal error: Uncaught Error: Call to undefined method Laminas\Http\Header\SetCookie::__toString()
on Line 270 of /laminas/laminas-http/src/Cookies.php
How to reproduce
Code:
Expected behavior
The $cookiesToCache variable should have the serialized string.
The text was updated successfully, but these errors were encountered: