fix saveToCache() usage; move hook controllers around
[pharext/pharext.org] / app / Controller / Github.php
index 5933fcd2ffc12aee7ccf5ef74a79daaea9e6e3dd..0c38bd7721cb3daf40f36e65ac8dbcf9a389e271 100644 (file)
@@ -58,7 +58,7 @@ abstract class Github implements Controller
                if ($repo->hooks) {
                        foreach ($repo->hooks as $hook) {
                                if ($hook->name === "web" && $hook->config->url === $this->github->getConfig()->hook->url) {
-                                       return $hook->id;
+                                       return $hook;
                                }
                        }
                }