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

adding type-hinting stub for array_chunk()

This commit is contained in:
SignpostMarv 2019-02-06 19:39:49 +00:00 committed by Matthew Brown
parent 1f3faff01f
commit 3de4457a45

View File

@ -146,3 +146,11 @@ function usort(array &$arr, callable $callback): bool {}
*/
function array_change_key_case(array $arr, int $case = CASE_LOWER) {}
/**
* @psalm-template T
*
* @param array<array-key, T> $arr
*
* @return array<int, array<array-key, T>>
*/
function array_chunk(array $arr, int $size, bool $preserve_keys = false) {}