8000 minor #45739 [HttpFoundation] Improve Cookie constructor to use const… · symfony/symfony@db99c07 · GitHub
[go: up one dir, main page]

Skip to content

Commit db99c07

Browse files
committed
minor #45739 [HttpFoundation] Improve Cookie constructor to use constant (JohJohan)
This PR was merged into the 6.1 branch. Discussion ---------- [HttpFoundation] Improve Cookie constructor to use constant | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | no | License | MIT | Doc PR | no Improve Cookie constructor to use a constant from the same class just like the `create` function. Commits ------- d929ca3 [HttpFoundation] Improve Cookie constructor to use constant
2 parents d6be0d9 + d929ca3 commit db99c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/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)
0