From 5a38e1b7ad81fbf095b95f4ab56982f9dc3c6a9c Mon Sep 17 00:00:00 2001 From: Antonio Carlos Ribeiro Date: Sat, 28 Oct 2017 18:43:01 -0200 Subject: [PATCH] Fix uniqueStrict for keyless collections --- src/Illuminate/Support/Collection.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Illuminate/Support/Collection.php b/src/Illuminate/Support/Collection.php index 13898792cbbd..22a0f3cdadb9 100644 --- a/src/Illuminate/Support/Collection.php +++ b/src/Illuminate/Support/Collection.php @@ -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 = [];