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
bb82bfac6d
commit
7318882357
|
@ -56,7 +56,7 @@ class SwiftFactory {
|
||||||
private function getCachedToken(string $cacheKey) {
|
private function getCachedToken(string $cacheKey) {
|
||||||
$cachedTokenString = $this->cache->get($cacheKey . '/token');
|
$cachedTokenString = $this->cache->get($cacheKey . '/token');
|
||||||
if ($cachedTokenString) {
|
if ($cachedTokenString) {
|
||||||
return json_decode($cachedTokenString);
|
return json_decode($cachedTokenString, true);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue