Skip to content

Commit 70f23b7

Browse files
author
Pantea Marius-ciclistu
committed
1 parent 6f3acaa commit 70f23b7

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

illuminate/Collections/Collection.php

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,12 +1661,34 @@ public function undot()
16611661
*
16621662
* @param (callable(TValue, TKey): mixed)|string|null $key
16631663
* @param bool $strict
1664+
* @param int $flags [optional] <p>
1665+
* The optional second parameter sort_flags
1666+
* may be used to modify the sorting behavior using these values:
1667+
* </p>
1668+
* <p>
1669+
* Sorting type flags:
1670+
* </p><ul>
1671+
* <li>
1672+
* <b>SORT_REGULAR</b> - compare items normally
1673+
* (don't change types)
1674+
* </li>
1675+
* <li>
1676+
* <b>SORT_NUMERIC</b> - compare items numerically
1677+
* </li>
1678+
* <li>
1679+
* <b>SORT_STRING</b> - compare items as strings
1680+
* </li>
1681+
* <li>
1682+
* <b>SORT_LOCALE_STRING</b> - compare items as strings,
1683+
* based on the current locale
1684+
* </li>
1685+
* </ul>
16641686
* @return static
16651687
*/
16661688
public function unique($key = null, $strict = false)
16671689
{
1668-
if (is_null($key) && $strict === false) {
1669-
return new static(array_unique($this->items, SORT_REGULAR));
1690+
if ($key === null && $strict === false) {
1691+
return new static(\array_unique($this->items, \func_get_args()[2] ?? SORT_REGULAR));
16701692
}
16711693

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

illuminate/Foundation/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Application extends Container implements
4444
*
4545
* @var string
4646
*/
47-
public const VERSION = '10.51.16';
47+
public const VERSION = '10.51.17';
4848

4949
/**
5050
* The base path for the Laravel installation.

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function bootstrapRouter()
169169
*/
170170
public function version()
171171
{
172-
return 'Maravel Framework 10.51.16';
172+
return 'Maravel Framework 10.51.17';
173173
}
174174

175175
/**

0 commit comments

Comments
 (0)