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:
parent
1f3faff01f
commit
3de4457a45
@ -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) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user