File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed
Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments