1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add generic support for current on array

This commit is contained in:
Matt Brown 2018-01-23 14:20:37 -05:00
parent abf561bb7d
commit 31e57dbdfa

View File

@ -113,6 +113,15 @@ function array_pop(array &$arr) {}
*/
function array_reverse(array $arr, bool $preserve_keys = false) {}
/**
* @template TKey
* @template TValue
*
* @param array<TKey, TValue> $arr
* @return TValue|false
*/
function current(array $arr) {}
/**
* @template TKey
* @template TValue