Skip to content

Commit a6d8168

Browse files
authored
Merge pull request 1EdTech#27 from mattwright/fix-cache-warning
Fix PHP notice that results from attempted access to uncached access …
2 parents 6019e21 + fc72b7d commit a6d8168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImsStorage/ImsCache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getAccessToken($key)
5353
{
5454
$this->loadCache();
5555

56-
return $this->cache[$key];
56+
return $this->cache[$key] ?? null;
5757
}
5858

5959
public function clearAccessToken($key)

0 commit comments

Comments
 (0)