json_decode an associative array for the swift cached token
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
e0e687f2a7
commit
a1e379986b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue