Skip to content
Snippets Groups Projects
Unverified Commit a1e37998 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

json_decode an associative array for the swift cached token

parent e0e687f2
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ class SwiftFactory {
private function getCachedToken(string $cacheKey) {
$cachedTokenString = $this->cache->get($cacheKey . '/token');
if ($cachedTokenString) {
return json_decode($cachedTokenString);
return json_decode($cachedTokenString, true);
} else {
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment