summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-foundation/Cookie.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-04 17:45:34 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-04 17:45:34 +0100
commit69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c (patch)
treef2ab9b134d7c24f79c4fa66f581cc6387e1938ed /vendor/symfony/http-foundation/Cookie.php
parentd69397b0fb0a7e71220076299d45dc2ac034b754 (diff)
downloadwebtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.tar.gz
webtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.tar.bz2
webtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.zip
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/http-foundation/Cookie.php')
-rw-r--r--vendor/symfony/http-foundation/Cookie.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/symfony/http-foundation/Cookie.php b/vendor/symfony/http-foundation/Cookie.php
index d202dc6c1e..c38aa409da 100644
--- a/vendor/symfony/http-foundation/Cookie.php
+++ b/vendor/symfony/http-foundation/Cookie.php
@@ -128,7 +128,7 @@ class Cookie
$sameSite = strtolower($sameSite);
}
- if (!in_array($sameSite, array(self::SAMESITE_LAX, self::SAMESITE_STRICT, null), true)) {
+ if (!\in_array($sameSite, array(self::SAMESITE_LAX, self::SAMESITE_STRICT, null), true)) {
throw new \InvalidArgumentException('The "sameSite" parameter value is not valid.');
}
@@ -266,7 +266,7 @@ class Cookie
*/
public function isCleared()
{
- return $this->expire < time();
+ return 0 !== $this->expire && $this->expire < time();
}
/**