Skip to content

Commit 930b354

Browse files
authored
Ask for interface instead of \DateTime
1 parent a681f64 commit 930b354

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Response/Response.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ public function addHeader(string $key, string $value)
120120
/**
121121
* Adds a cookie
122122
*
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
123+
* @param string $key The name of the cookie
124+
* @param mixed $value The value pf the cookie
125+
* @param \DateTimeInterface $expire The expiration date
126126
*/
127-
public function addCookie(string $key, $value, \DateTime $expire)
127+
public function addCookie(string $key, $value, \DateTimeInterface $expire)
128128
{
129129
$this->cookies[$key] = $this->cookieFactory->build($key, $value, $expire);
130130
}

0 commit comments

Comments
 (0)