mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +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) {}
|
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 TKey
|
||||||
* @template TValue
|
* @template TValue
|
||||||
|
Loading…
Reference in New Issue
Block a user