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
In version 5, the Swoole\Http\Response->setCookie() changed from: ->setCookie(name: $name,value: $value, expires: $expires, path: $path, domain: $domain, secure: $secure, httponly: $httponly);
to ->setCookie(name: $name,value: $value, expire: $expires, path: $path, domain: $domain, secure: $secure, httponly: $httponly);
(notice the expire vs expires argument)
Since in PHP8 you can use named arguments, this is a braking change that should probably be documented, since allot of times methods can be called with ->setCookie(...$cookieArray), and that can introduce hidden bugs.
Also, since swoole/ide-helper and wiki.swoole.com is not being released in the same time as swoole-src tag, this adds to most complains people have about Swoole, "the documentation".
The text was updated successfully, but these errors were encountered:
Hello
In version 5, the
Swoole\Http\Response->setCookie()
changed from:->setCookie(name: $name,value: $value, expires: $expires, path: $path, domain: $domain, secure: $secure, httponly: $httponly);
to
->setCookie(name: $name,value: $value, expire: $expires, path: $path, domain: $domain, secure: $secure, httponly: $httponly);
(notice the
expire
vsexpires
argument)Since in PHP8 you can use named arguments, this is a braking change that should probably be documented, since allot of times methods can be called with
->setCookie(...$cookieArray)
, and that can introduce hidden bugs.Also, since
swoole/ide-helper
andwiki.swoole.com
is not being released in the same time asswoole-src
tag, this adds to most complains people have about Swoole, "the documentation".The text was updated successfully, but these errors were encountered: