From 45bf9e8650177e8293f49ab91827282dd181021c Mon Sep 17 00:00:00 2001 From: Alex Manase Date: Sat, 29 Oct 2022 18:19:43 +0300 Subject: [PATCH] ignore the keys returned by the datasets Generator for storing them into an array --- src/Datasets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Datasets.php b/src/Datasets.php index 89725107..19ed1359 100644 --- a/src/Datasets.php +++ b/src/Datasets.php @@ -122,7 +122,7 @@ final class Datasets } if ($datasets[$index] instanceof Traversable) { - $datasets[$index] = iterator_to_array($datasets[$index]); + $datasets[$index] = iterator_to_array($datasets[$index], false); } foreach ($datasets[$index] as $key => $values) {