1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

handle the non-empty case for uksort()

This commit is contained in:
hirokinoue 2022-04-29 00:23:57 +09:00
parent d4470cc99e
commit 8c64bddf29

View File

@ -244,10 +244,11 @@ function uasort(array &$array, callable $callback): bool
/**
* @psalm-template TKey
* @psalm-template T
* @psalm-template TArray as array<TKey,T>
*
* @param array<TKey,T> $array
* @param TArray $array
* @param callable(TKey,TKey):int $callback
* @param-out array<TKey,T> $array
* @param-out (TArray is non-empty-array ? non-empty-array<TKey,T> : array<TKey,T>) $array
*/
function uksort(array &$array, callable $callback): bool
{