Skip to content

Commit

Permalink
Use strict equality
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr authored Dec 8, 2021
1 parent f63a68e commit 3c72fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Http/Cookie/JWTCookieProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function createCookie(string $jwt, ?string $name = null, $expiresAt = nul
$jwt = $jwtParts->getParts($split ?: $this->defaultSplit);

if (null === $expiresAt) {
$expiresAt = $this->defaultLifetime == 0 ? 0 : (time() + $this->defaultLifetime);
$expiresAt = 0 === $this->defaultLifetime ? 0 : (time() + $this->defaultLifetime);
}

return new Cookie(
Expand Down

0 comments on commit 3c72fe6

Please sign in to comment.