Skip to content

Commit f2bccbc

Browse files
authored
Ask for interface instead of \DateTime
1 parent ce22478 commit f2bccbc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Cookie/Cookie.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Cookie
3535
private $value;
3636

3737
/**
38-
* @var \DateTime The expiration date
38+
* @var \DateTimeInterface The expiration date
3939
*/
4040
private $expire;
4141

@@ -62,14 +62,14 @@ class Cookie
6262
/**
6363
* Creates instance
6464
*
65-
* @param string $name The name of the cookie
66-
* @param mixed $value The value of the cookie
67-
* @param \DateTime $expire The expiration date
68-
* @param string $path The path on which the cookie is valid
69-
* @param string $domain The domain on which the cookie is valid
70-
* @param bool $secure Whether the cookie must only be sent over SSL/TLS
65+
* @param string $name The name of the cookie
66+
* @param mixed $value The value of the cookie
67+
* @param \DateTimeInterface $expire The expiration date
68+
* @param string $path The path on which the cookie is valid
69+
* @param string $domain The domain on which the cookie is valid
70+
* @param bool $secure Whether the cookie must only be sent over SSL/TLS
7171
*/
72-
public function __construct(string $name, $value, \DateTime $expire, string $path, string $domain, bool $secure)
72+
public function __construct(string $name, $value, \DateTimeInterface $expire, string $path, string $domain, bool $secure)
7373
{
7474
$this->name = $name;
7575
$this->value = $value;

0 commit comments

Comments
 (0)