Skip to content

Commit e25dd32

Browse files
committed
For php8.4
1 parent 44dcfa2 commit e25dd32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Protocols/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function withFile(string $file, int $offset = 0, int $length = 0): static
335335
* @param string $sameSite
336336
* @return $this
337337
*/
338-
public function cookie(string $name, string $value = '', int $maxAge = null, string $path = '', string $domain = '', bool $secure = false, bool $httpOnly = false, string $sameSite = ''): static
338+
public function cookie(string $name, string $value = '', ?int $maxAge = null, string $path = '', string $domain = '', bool $secure = false, bool $httpOnly = false, string $sameSite = ''): static
339339
{
340340
$this->headers['Set-Cookie'][] = $name . '=' . rawurlencode($value)
341341
. (empty($domain) ? '' : '; Domain=' . $domain)

0 commit comments

Comments
 (0)