diff --git a/Cookie.php b/Cookie.php index 7a0cee9..b487fc5 100644 --- a/Cookie.php +++ b/Cookie.php @@ -43,20 +43,20 @@ class Cookie /** * Sets a cookie. * - * @param string $name The cookie name - * @param string|null $value The value of the cookie - * @param string|null $expires The time the cookie expires - * @param string|null $path The path on the server in which the cookie will be available on - * @param string $domain The domain that the cookie is available - * @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client - * @param bool $httponly The cookie httponly flag - * @param bool $encodedValue Whether the value is encoded or not - * @param string|null $samesite The cookie samesite attribute + * @param string $name The cookie name + * @param string|null $value The value of the cookie + * @param string|int|null $expires The time the cookie expires + * @param string|null $path The path on the server in which the cookie will be available on + * @param string $domain The domain that the cookie is available + * @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client + * @param bool $httponly The cookie httponly flag + * @param bool $encodedValue Whether the value is encoded or not + * @param string|null $samesite The cookie samesite attribute */ public function __construct( private string $name, ?string $value, - ?string $expires = null, + string|int|null $expires = null, ?string $path = null, private string $domain = '', private bool $secure = false,