@@ -44,14 +44,14 @@ class Cookie
44
44
/**
45
45
* Sets a cookie.
46
46
*
47
- * @param string $name The cookie name
48
- * @param string $value The value of the cookie
49
- * @param string $expires The time the cookie expires
50
- * @param string $path The path on the server in which the cookie will be available on
51
- * @param string $domain The domain that the cookie is available
52
- * @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
53
- * @param bool $httponly The cookie httponly flag
54
- * @param bool $encodedValue Whether the value is encoded or not
47
+ * @param string $name The cookie name
48
+ * @param string $value The value of the cookie
49
+ * @param string|null $expires The time the cookie expires
50
+ * @param string|null $path The path on the server in which the cookie will be available on
51
+ * @param string $domain The domain that the cookie is available
52
+ * @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
53
+ * @param bool $httponly The cookie httponly flag
54
+ * @param bool $encodedValue Whether the value is encoded or not
55
55
*/
56
56
public function __construct ($ name , $ value , $ expires = null , $ path = null , $ domain = '' , $ secure = false , $ httponly = true , $ encodedValue = false )
57
57
{
@@ -112,8 +112,8 @@ public function __toString()
112
112
/**
113
113
* Creates a Cookie instance from a Set-Cookie header value.
114
114
*
115
- * @param string $cookie A Set-Cookie header value
116
- * @param string $url The base URL
115
+ * @param string $cookie A Set-Cookie header value
116
+ * @param string|null $url The base URL
117
117
*
118
118
* @return static
119
119
*
@@ -242,7 +242,7 @@ public function getRawValue()
242
242
/**
243
243
* Gets the expires time of the cookie.
244
244
*
245
- * @return string The cookie expires time
245
+ * @return string|null The cookie expires time
246
246
*/
247
247
public function getExpiresTime ()
248
248
{
0 commit comments