We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a681f64 commit 930b354Copy full SHA for 930b354
src/Response/Response.php
@@ -120,11 +120,11 @@ public function addHeader(string $key, string $value)
120
/**
121
* Adds a cookie
122
*
123
- * @param string $key The name of the cookie
124
- * @param mixed $value The value pf the cookie
125
- * @param \DateTime $expire The expiration date
+ * @param string $key The name of the cookie
+ * @param mixed $value The value pf the cookie
+ * @param \DateTimeInterface $expire The expiration date
126
*/
127
- public function addCookie(string $key, $value, \DateTime $expire)
+ public function addCookie(string $key, $value, \DateTimeInterface $expire)
128
{
129
$this->cookies[$key] = $this->cookieFactory->build($key, $value, $expire);
130
}
0 commit comments