Skip to content

Commit 2cc7775

Browse files
committed
Fix review
1 parent c5e3984 commit 2cc7775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Cookie/Cookie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,11 +766,11 @@ protected function validateSameSite(string $samesite, bool $secure): void
766766
$samesite = self::SAMESITE_LAX;
767767
}
768768

769-
if (! in_array(ucfirst($samesite), self::ALLOWED_SAMESITE_VALUES, true)) {
769+
if (! in_array($samesite, self::ALLOWED_SAMESITE_VALUES, true)) {
770770
throw CookieException::forInvalidSameSite($samesite);
771771
}
772772

773-
if (ucfirst($samesite) === self::SAMESITE_NONE && ! $secure) {
773+
if ($samesite === self::SAMESITE_NONE && ! $secure) {
774774
throw CookieException::forInvalidSameSiteNone();
775775
}
776776
}

0 commit comments

Comments
 (0)