8000 [HttpFoundation] fix compat of tests with PHP 7.3 · symfony/symfony@4c1f7c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c1f7c5

Browse files
[HttpFoundation] fix compat of tests with PHP 7.3
1 parent c31c40d commit 4c1f7c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function start()
153153
if (null !== $this->emulateSameSite) {
154154
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
155155
if (null !== $originalCookie) {
156-
header(sprintf('%s; samesite=%s', $originalCookie, $this->emulateSameSite));
156+
header(sprintf('%s; SameSite=%s', $originalCookie, $this->emulateSameSite));
157157
}
158158
}
159159

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/Fixtures/with_samesite.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Array
1111
(
1212
[0] => Content-Type: text/plain; charset=utf-8
1313
[1] => Cache-Control: max-age=0, private, must-revalidate
14-
[2] => Set-Cookie: sid=random_session_id; path=/; secure; HttpOnly; samesite=lax
14+
[2] => Set-Cookie: sid=random_session_id; path=/; secure; HttpOnly; SameSite=lax
1515
)
1616
shutdown

0 commit comments

Comments
 (0)
0