Skip to content

Commit

Permalink
Added support for PHP 8.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Nov 23, 2024
1 parent fe6b4dd commit f94a528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- operating-system: 'ubuntu-latest'
php-version: '8.2'

- operating-system: 'ubuntu-latest'
php-version: '8.4'

- operating-system: 'windows-latest'
php-version: '8.1'
job-description: 'on Windows'
Expand Down
4 changes: 2 additions & 2 deletions src/Cookie/ResponseCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ private static function parseDate(string $date): ?\DateTimeImmutable
/**
* @param non-empty-string $name Name of the cookie.
* @param string $value Value of the cookie.
* @param CookieAttributes $attributes Attributes of the cookie.
* @param CookieAttributes|null $attributes Attributes of the cookie.
*
* @throws InvalidCookieException If name or value is invalid.
*/
public function __construct(
private string $name,
private string $value = '',
CookieAttributes $attributes = null,
?CookieAttributes $attributes = null,
) {
if (!\preg_match(self::NAME_REGEX, $name)) {
throw new InvalidCookieException("Invalid cookie name: '{$name}'");
Expand Down

0 comments on commit f94a528

Please # to comment.