Skip to content

Commit ccefc76

Browse files
authored
Merge pull request #42747 from devfrey/patch-1
[9.x] Fix incorrect PHPDoc syntax in `Collection`
2 parents 3ef2cd7 + 42e4892 commit ccefc76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ public function sortDesc($options = SORT_REGULAR)
13211321
/**
13221322
* Sort the collection using the given callback.
13231323
*
1324-
* @param array<array-key, (callable(TValue, TKey): mixed)|array<array-key, string>|(callable(TValue, TKey): mixed)|string $callback
1324+
* @param array<array-key, (callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback
13251325
* @param int $options
13261326
* @param bool $descending
13271327
* @return static
@@ -1359,7 +1359,7 @@ public function sortBy($callback, $options = SORT_REGULAR, $descending = false)
13591359
/**
13601360
* Sort the collection using multiple comparisons.
13611361
*
1362-
* @param array<array-key, (callable(TValue, TKey): mixed)|array<array-key, string> $comparisons
1362+
* @param array<array-key, (callable(TValue, TKey): mixed)|string|array{string, string}> $comparisons
13631363
* @return static
13641364
*/
13651365
protected function sortByMany(array $comparisons = [])
@@ -1401,7 +1401,7 @@ protected function sortByMany(array $comparisons = [])
14011401
/**
14021402
* Sort the collection in descending order using the given callback.
14031403
*
1404-
* @param array<array-key, (callable(TValue, TKey): mixed)|array<array-key, string>|(callable(TValue, TKey): mixed)|string $callback
1404+
* @param array<array-key, (callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback
14051405
* @param int $options
14061406
* @return static
14071407
*/

0 commit comments

Comments
 (0)