yet another github api refactoring
[pharext/pharext.org] / app / Github / API / Repos / ListRepos.php
index c84219696004d66ee5fbdec025e9b864309f7798..60767c395e42ef9188cc5744f012022cab6687a3 100644 (file)
@@ -20,7 +20,8 @@ class ListRepos extends Call
                                throw new RequestException($response);
                        }
                        $links = new Links($response->getHeader("Link"));
-                       $this->saveToCache([$json, $links]);
+                       $this->result = [$json, $links];
+                       $this->saveToCache($this->result);
                        $callback($json, $links);
                        return true;
                });