projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
PHP8
[m6w6/seekat]
/
examples
/
hooks.php
diff --git
a/examples/hooks.php
b/examples/hooks.php
index dfcb6359d51d19bf154570cb8e761ab90cae90a8..612e6de75dbfc014f7ac97daaf11a7152896e50a 100755
(executable)
--- a/
examples/hooks.php
+++ b/
examples/hooks.php
@@
-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;
}