X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI%2FCall.php;h=3615851693f1870d2094ea70d8a3a018298326f6;hb=25b99959b9e66d00681092977c23b5df32ead5f4;hp=f40e4866f6b837764b4b999798bca96453f13560;hpb=07b87ac26f62bc3c069bb16983fe7500272e19b4;p=pharext%2Fpharext.org diff --git a/app/Github/API/Call.php b/app/Github/API/Call.php index f40e486..3615851 100644 --- a/app/Github/API/Call.php +++ b/app/Github/API/Call.php @@ -96,7 +96,7 @@ abstract class Call new QueryString($this->args)); } - function readFromCache(&$cached = null, &$ttl = null) { + function readFromCache(array &$cached = null, &$ttl = null) { if (empty($this->args["fresh"]) && ($cache = $this->api->getCacheStorage())) { $key = $this->getCacheKey(); return $cache->get($key, $cached, $ttl); @@ -104,7 +104,7 @@ abstract class Call return false; } - function saveToCache($fresh) { + function saveToCache(array $fresh) { if (($cache = $this->api->getCacheStorage())) { if (isset($this->config->storage->cache->{$this}->ttl)) { $ttl = $this->config->storage->cache->{$this}->ttl;