summaryrefslogtreecommitdiffstats
path: root/Csrf/TokenStorage/NativeSessionTokenStorage.php
diff options
context:
space:
mode:
Diffstat (limited to 'Csrf/TokenStorage/NativeSessionTokenStorage.php')
-rw-r--r--Csrf/TokenStorage/NativeSessionTokenStorage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Csrf/TokenStorage/NativeSessionTokenStorage.php b/Csrf/TokenStorage/NativeSessionTokenStorage.php
index c01967c..8e9b280 100644
--- a/Csrf/TokenStorage/NativeSessionTokenStorage.php
+++ b/Csrf/TokenStorage/NativeSessionTokenStorage.php
@@ -98,7 +98,7 @@ class NativeSessionTokenStorage implements TokenStorageInterface
}
$token = isset($_SESSION[$this->namespace][$tokenId])
- ? $_SESSION[$this->namespace][$tokenId]
+ ? (string) $_SESSION[$this->namespace][$tokenId]
: null;
unset($_SESSION[$this->namespace][$tokenId]);