Skip to content

Commit

Permalink
handle the non-empty case for usort()
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokinoue committed Apr 28, 2022
1 parent 139948e commit 2b34b12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,11 @@ function rsort(array &$array, int $flags = SORT_REGULAR): bool

/**
* @psalm-template T
* @psalm-template TArray as array<T>
*
* @param T[] $array
* @param TArray $array
* @param callable(T,T):int $callback
* @param-out list<T> $array
* @param-out (TArray is non-empty-array ? non-empty-list<T> : list<T>) $array
*/
function usort(array &$array, callable $callback): bool
{
Expand Down

0 comments on commit 2b34b12

Please sign in to comment.