diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 32bd501a20c..a1fe41a66d1 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -219,10 +219,11 @@ function rsort(array &$array, int $flags = SORT_REGULAR): bool /** * @psalm-template T + * @psalm-template TArray as array * - * @param T[] $array + * @param TArray $array * @param callable(T,T):int $callback - * @param-out list $array + * @param-out (TArray is non-empty-array ? non-empty-list : list) $array */ function usort(array &$array, callable $callback): bool {