77use Kiboko \Contract \Bucket \ResultBucketInterface ;
88
99/**
10- * @template Type
10+ * @template Type of non-empty-array<array-key, mixed>|object
1111 */
1212class GeneratorWrapper
1313{
14- /** @param \Iterator<array-key , Type> ...$iterators */
14+ /** @param \Iterator<positive-int , Type> ...$iterators */
1515 public function rewind (\Iterator ...$ iterators ): void
1616 {
1717 foreach ($ iterators as $ iterator ) {
1818 $ iterator ->rewind ();
1919 }
2020 }
2121
22- /** @param \Iterator<array-key , Type> ...$iterators */
22+ /** @param \Iterator<positive-int , Type> ...$iterators */
2323 public function next (\Iterator ...$ iterators ): void
2424 {
2525 foreach ($ iterators as $ iterator ) {
2626 $ iterator ->next ();
2727 }
2828 }
2929
30- /** @param \Iterator<array-key , Type> ...$iterators */
30+ /** @param \Iterator<positive-int , Type> ...$iterators */
3131 public function valid (\Iterator ...$ iterators ): bool
3232 {
3333 foreach ($ iterators as $ iterator ) {
@@ -41,7 +41,7 @@ public function valid(\Iterator ...$iterators): bool
4141
4242 /**
4343 * @param Type $value
44- * @param \Generator<array-key , ResultBucketInterface<Type>, Type, void> ...$generators
44+ * @param \Generator<positive-int , ResultBucketInterface<Type>, Type, void> ...$generators
4545 */
4646 public function send ($ value , \Generator ...$ generators ): \Generator
4747 {
0 commit comments