drop async-interop
[m6w6/seekat] / examples / hooks.php
index dfcb6359d51d19bf154570cb8e761ab90cae90a8..612e6de75dbfc014f7ac97daaf11a7152896e50a 100755 (executable)
@@ -30,7 +30,8 @@ $api(function() use($api) {
                foreach ($repos as $repo) {
                        $batch[] = $repo->hooks();
                }
-               foreach (yield $batch as $key => $hooks) {
+               $result = yield $batch;
+               foreach ($result as $key => $hooks) {
                        if (!count($hooks)) {
                                continue;
                        }