Skip to content

Commit 5ab9072

Browse files
committed
[HttpFoundation] Improve Cookie constructor to use constant
1 parent fabd09b commit 5ab9072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function create(string $name, string $value = null, int|string|\Da
8787
*
8888
* @throws \InvalidArgumentException
8989
*/
90-
public function __construct(string $name, string $value = null, int|string|\DateTimeInterface $expire = 0, ?string $path = '/', string $domain = null, bool $secure = null, bool $httpOnly = true, bool $raw = false, ?string $sameSite = 'lax')
90+
public function __construct(string $name, string $value = null, int|string|\DateTimeInterface $expire = 0, ?string $path = '/', string $domain = null, bool $secure = null, bool $httpOnly = true, bool $raw = false, ?string $sameSite = self::SAMESITE_LAX)
9191
{
9292
// from PHP source code
9393
if ($raw && false !== strpbrk($name, self::RESERVED_CHARS_LIST)) {

0 commit comments

Comments
 (0)