fix saveToCache() usage; move hook controllers around
[pharext/pharext.org] / app / Github / API / Repos / ReadContents.php
index 02b28fb55bcb514a1016fb3b693a57b97c9b62fc..fde19b88a664cb6bfb462faa3a5f88039e39d001 100644 (file)
@@ -18,7 +18,7 @@ class ReadContents extends Call
                        if ($response->getResponseCode() >= 400 || null === ($json = json_decode($response->getBody()))) {
                                throw new RequestException($response);
                        }
-                       $this->saveToCache($json);
+                       $this->saveToCache([$json]);
                        $callback($json);
                        return true;
                });