[HttpFoundation] fix compat of tests with PHP 7.3

This commit is contained in:
Nicolas Grekas 2018-10-02 18:23:27 +02:00
parent c31c40d83e
commit 4c1f7c5877
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class NativeSessionStorage implements SessionStorageInterface
if (null !== $this->emulateSameSite) {
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
if (null !== $originalCookie) {
header(sprintf('%s; samesite=%s', $originalCookie, $this->emulateSameSite));
header(sprintf('%s; SameSite=%s', $originalCookie, $this->emulateSameSite));
}
}

View File

@ -11,6 +11,6 @@ Array
(
[0] => Content-Type: text/plain; charset=utf-8
[1] => Cache-Control: max-age=0, private, must-revalidate
[2] => Set-Cookie: sid=random_session_id; path=/; secure; HttpOnly; samesite=lax
[2] => Set-Cookie: sid=random_session_id; path=/; secure; HttpOnly; SameSite=lax
)
shutdown