From d027bbf41b1412947e58bebd64e8edf00e7e4fcb Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Sun, 25 Oct 2020 21:07:13 -0400 Subject: [PATCH] Remove stubs with variadic middle params Fixees #4377 --- stubs/CoreGenericFunctions.phpstub | 64 ------------------------------ 1 file changed, 64 deletions(-) diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index f37af3c13..0fc5fcc45 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -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 $arr - * @param array $arr2 - * @param array ...$arr3 - * @param callable(TKey): int $keyCompareFunc - * - * @return array - * - * @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 $arr - * @param array $arr2 - * @param array ...$arr3 - * @param callable(TKey): int $keyCompareFunc - * - * @return array - * - * @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 $arr - * @param array $arr2 - * @param array ...$arr3 - * @param callable(TKey, TKey): int $keyCompareFunc - * - * @return array - * @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 $arr - * @param array $arr2 - * @param array ...$arr3 - * @param callable(TKey, TKey): int $keyCompareFunc - * - * @return array - * @psalm-pure - */ -function array_diff_uassoc(array $arr, array $arr2, array ... $arr3, callable $keyCompareFunc): array {} - /** * @psalm-template TKey as array-key * @psalm-template TValue