Skip to content

Commit 4223997

Browse files
committed
fixed CS
1 parent b84aded commit 4223997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Cookie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public function __construct($name, $value = null, $expire = 0, $path = '/', $dom
7777
$this->httpOnly = (bool) $httpOnly;
7878
$this->raw = (bool) $raw;
7979

80-
if (!in_array($sameSite, array(self::SAMESITE_LAX, self::SAMESITE_STRICT, null))) {
81-
throw new \InvalidArgumentException('The sameSite parameter is not valid.');
80+
if (!in_array($sameSite, array(self::SAMESITE_LAX, self::SAMESITE_STRICT, null), true)) {
81+
throw new \InvalidArgumentException('The "sameSite" parameter value is not valid.');
8282
}
8383

8484
$this->sameSite = $sameSite;

0 commit comments

Comments
 (0)