Skip to content

Commit 5d4103d

Browse files
committed
Adds docblock to Cookie::createWithoutValidation
1 parent 6d92a31 commit 5d4103d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Cookie.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ public function __construct(
8989
$this->httpOnly = (bool) $httpOnly;
9090
}
9191

92+
/**
93+
* Creates a new cookie without any attribute validation.
94+
*
95+
* @param string $name
96+
* @param string|null $value
97+
* @param int $maxAge
98+
* @param string|null $domain
99+
* @param string|null $path
100+
* @param bool $secure
101+
* @param bool $httpOnly
102+
* @param \DateTime|null $expires Expires attribute is HTTP 1.0 only and should be avoided.
103+
*/
92104
public static function createWithoutValidation(
93105
$name,
94106
$value = null,

0 commit comments

Comments
 (0)