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:
parent
abf561bb7d
commit
31e57dbdfa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user