Skip to content

Commit

Permalink
Handle gaps in array keys
Browse files Browse the repository at this point in the history
  • Loading branch information
shadoWalker89 authored and loilo committed Jan 19, 2019
1 parent 03a9594 commit b6cbd8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fuse.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function __construct($list, $options = [])

public function setCollection($list)
{
$list = array_values($list);
$this->list = $list;
return $list;
}
Expand Down

0 comments on commit b6cbd8b

Please sign in to comment.