X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=app%2FGithub%2FAPI%2FRepos%2FReadContents.php;h=844df198209cb2aec4d091d0ea3f4d16a7dafd96;hb=36cfa28cf2dcee3422f0231f91c6692eb28e7824;hp=fde19b88a664cb6bfb462faa3a5f88039e39d001;hpb=77b6c7f9f75740e15d745d34e7263111a73391a8;p=pharext%2Fpharext.org diff --git a/app/Github/API/Repos/ReadContents.php b/app/Github/API/Repos/ReadContents.php index fde19b8..844df19 100644 --- a/app/Github/API/Repos/ReadContents.php +++ b/app/Github/API/Repos/ReadContents.php @@ -18,7 +18,8 @@ class ReadContents extends Call if ($response->getResponseCode() >= 400 || null === ($json = json_decode($response->getBody()))) { throw new RequestException($response); } - $this->saveToCache([$json]); + $this->result = [$json]; + $this->saveToCache($this->result); $callback($json); return true; });