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
Out of the box, when you do cookie()->forget('cookie_name') Laravel saves a cookie with null value under the hood. This cookie is then fed into Swoole's response object here: https://github.com/laravel/octane/blob/1.x/src/Swoole/SwooleClient.php#L192, which in turn triggers a deprecation error from Swoole itself: Swoole\Http\Response::cookie(): Passing null to parameter #2 ($value) of type string is deprecated in /app/vendor/laravel/octane/src/Swoole/SwooleClient.php:200.
When either not using Octane at all or using Roadrunner, Symfony's Cookie class handles missing value by converting null cookie value to "deleted".
Steps To Reproduce:
Enable deprecation warnings; then do cookie()->forget('cookie_name') in an Octane Swoole server.
The text was updated successfully, but these errors were encountered:
Description:
Out of the box, when you do
cookie()->forget('cookie_name')
Laravel saves a cookie withnull
value under the hood. This cookie is then fed into Swoole's response object here: https://github.com/laravel/octane/blob/1.x/src/Swoole/SwooleClient.php#L192, which in turn triggers a deprecation error from Swoole itself:Swoole\Http\Response::cookie(): Passing null to parameter #2 ($value) of type string is deprecated in /app/vendor/laravel/octane/src/Swoole/SwooleClient.php:200
.When either not using Octane at all or using Roadrunner, Symfony's
Cookie
class handles missing value by convertingnull
cookie value to "deleted".Steps To Reproduce:
Enable deprecation warnings; then do
cookie()->forget('cookie_name')
in an Octane Swoole server.The text was updated successfully, but these errors were encountered: