From b6cbd8baf235457560fc6d2d661c46d6bd5cd59b Mon Sep 17 00:00:00 2001 From: Melek REBAI Date: Sat, 19 Jan 2019 13:41:55 +0100 Subject: [PATCH] Handle gaps in array keys --- src/Fuse.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fuse.php b/src/Fuse.php index d364c9c..04d0281 100644 --- a/src/Fuse.php +++ b/src/Fuse.php @@ -51,6 +51,7 @@ public function __construct($list, $options = []) public function setCollection($list) { + $list = array_values($list); $this->list = $list; return $list; }