Skip to content

Commit

Permalink
For php8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Nov 24, 2024
1 parent 44dcfa2 commit e25dd32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocols/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public function withFile(string $file, int $offset = 0, int $length = 0): static
* @param string $sameSite
* @return $this
*/
public function cookie(string $name, string $value = '', int $maxAge = null, string $path = '', string $domain = '', bool $secure = false, bool $httpOnly = false, string $sameSite = ''): static
public function cookie(string $name, string $value = '', ?int $maxAge = null, string $path = '', string $domain = '', bool $secure = false, bool $httpOnly = false, string $sameSite = ''): static
{
$this->headers['Set-Cookie'][] = $name . '=' . rawurlencode($value)
. (empty($domain) ? '' : '; Domain=' . $domain)
Expand Down

0 comments on commit e25dd32

Please sign in to comment.