Skip to content

Commit

Permalink
Merge pull request 1EdTech#27 from mattwright/fix-cache-warning
Browse files Browse the repository at this point in the history
Fix PHP notice that results from attempted access to uncached access …
  • Loading branch information
dbhynds authored Oct 21, 2021
2 parents 6019e21 + fc72b7d commit a6d8168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImsStorage/ImsCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getAccessToken($key)
{
$this->loadCache();

return $this->cache[$key];
return $this->cache[$key] ?? null;
}

public function clearAccessToken($key)
Expand Down

0 comments on commit a6d8168

Please sign in to comment.