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:
parent
d4470cc99e
commit
8c64bddf29
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user