Skip to content

Commit

Permalink
Fix Psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Jun 1, 2021
1 parent d2575de commit 09a751c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Security/TwoFactor/Trusted/TrustedDeviceTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ private function readTrustedTokenList(): array

private function readCookieValue(): ?string
{
return $this->getRequest()->cookies->get($this->cookieName, null);
$cookieValue = $this->getRequest()->cookies->get($this->cookieName, null);

return null === $cookieValue ? null : (string) $cookieValue;
}

private function getRequest(): Request
Expand Down

0 comments on commit 09a751c

Please sign in to comment.