Skip to content

Commit

Permalink
Fix uniqueStrict for keyless collections
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Oct 29, 2017
1 parent c30d094 commit 5a38e1b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1482,10 +1482,6 @@ public function transform(callable $callback)
*/
public function unique($key = null, $strict = false)
{
if (is_null($key)) {
return new static(array_unique($this->items, SORT_REGULAR));
}

$callback = $this->valueRetriever($key);

$exists = [];
Expand Down

0 comments on commit 5a38e1b

Please sign in to comment.