1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Remove stubs with variadic middle params

Fixees #4377
This commit is contained in:
Matt Brown 2020-10-25 21:07:13 -04:00 committed by Daniil Gentili
parent 95b0d6da91
commit d027bbf41b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -44,23 +44,6 @@ function array_intersect_key(array $arr, array $arr2, array ...$arr3)
{
}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue
*
* @param array<TKey, TValue> $arr
* @param array $arr2
* @param array ...$arr3
* @param callable(TKey): int $keyCompareFunc
*
* @return array<TKey, TValue>
*
* @psalm-pure
*/
function array_intersect_ukey(array $arr, array $arr2, array ...$arr3, callable $keyCompareFunc): array
{
}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue
@ -76,23 +59,6 @@ function array_intersect_assoc(array $arr, array $arr2, array ...$arr3)
{
}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue
*
* @param array<TKey, TValue> $arr
* @param array $arr2
* @param array ...$arr3
* @param callable(TKey): int $keyCompareFunc
*
* @return array<TKey, TValue>
*
* @psalm-pure
*/
function array_intersect_uassoc(array $arr, array $arr2, array ...$arr3, callable $keyCompareFunc): array {}
{
}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue
@ -138,22 +104,6 @@ function array_diff_key(array $arr, array $arr2, array ...$arr3)
{
}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue
*
* @param array<TKey, TValue> $arr
* @param array $arr2
* @param array ...$arr3
* @param callable(TKey, TKey): int $keyCompareFunc
*
* @return array<TKey, TValue>
* @psalm-pure
*/
function array_diff_ukey(array $arr, array $arr2, array ...$arr3, callable $keyCompareFunc): array {}
{
}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue
@ -169,20 +119,6 @@ function array_diff_assoc(array $arr, array $arr2, array ...$arr3)
{
}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue
*
* @param array<TKey, TValue> $arr
* @param array $arr2
* @param array ...$arr3
* @param callable(TKey, TKey): int $keyCompareFunc
*
* @return array<TKey, TValue>
* @psalm-pure
*/
function array_diff_uassoc(array $arr, array $arr2, array ... $arr3, callable $keyCompareFunc): array {}
/**
* @psalm-template TKey as array-key
* @psalm-template TValue