Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Commit

Permalink
Changing the addMultiple method
Browse files Browse the repository at this point in the history
Changing the addMultiple method to preserve the keys when merged
  • Loading branch information
italolelis committed Feb 11, 2014
1 parent 11355b7 commit 8f640a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CollectionArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected function addMultiple($items)
}
}
if (empty($array) == false) {
$this->array = array_merge($this->array, $array);
$this->array = $this->array + $array;
}
}

Expand Down

0 comments on commit 8f640a6

Please sign in to comment.