Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/swoole/Swoole/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,29 @@ public function isWritable(): bool
* urlencoded when set.
*
* @alias This method has an alias of \Swoole\Http\Response::setCookie().
* @param Cookie|string $name The name of the cookie as a string, or a Cookie object.
* @param Cookie|string $name_or_object The name of the cookie as a string, or a Cookie object.
* Only string values were accepted before Swoole 6.0.0.
* @param bool $partitioned Specifies whether the cookie should be stored using partitioned storage.
* Available since Swoole 6.0.0; prior versions did not support partitioned storage for cookies.
* @see \Swoole\Http\Response::setCookie()
* @see \Swoole\Http\Response::rawcookie()
*/
public function cookie(Cookie|string $name, string $value = '', int $expires = 0, string $path = '/', string $domain = '', bool $secure = false, bool $httponly = false, string $samesite = '', string $priority = '', bool $partitioned = false): bool
public function cookie(Cookie|string $name_or_object, string $value = '', int $expires = 0, string $path = '/', string $domain = '', bool $secure = false, bool $httponly = false, string $samesite = '', string $priority = '', bool $partitioned = false): bool
{
}

/**
* Set a cookie.
*
* @alias Alias of method \Swoole\Http\Response::cookie().
* @param Cookie|string $name The name of the cookie as a string, or a Cookie object.
* @param Cookie|string $name_or_object The name of the cookie as a string, or a Cookie object.
* Only string values were accepted before Swoole 6.0.0.
* @param bool $partitioned Specifies whether the cookie should be stored using partitioned storage.
* Available since Swoole 6.0.0; prior versions did not support partitioned storage for cookies.
* @see \Swoole\Http\Response::cookie()
* @since 4.4.0
*/
public function setCookie(Cookie|string $name, string $value = '', int $expires = 0, string $path = '/', string $domain = '', bool $secure = false, bool $httponly = false, string $samesite = '', string $priority = '', bool $partitioned = false): bool
public function setCookie(Cookie|string $name_or_object, string $value = '', int $expires = 0, string $path = '/', string $domain = '', bool $secure = false, bool $httponly = false, string $samesite = '', string $priority = '', bool $partitioned = false): bool
{
}

Expand Down