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

Improve names a little

This commit is contained in:
Brown 2020-04-18 00:59:16 -04:00
parent 9b8e8ab964
commit e699004dab

View File

@ -1,13 +1,13 @@
<?php
/**
* @psalm-template T as array-key
* @psalm-template A as non-empty-array<T, mixed>|array<T, mixed>
* @psalm-template TKey as array-key
* @psalm-template TArray as array<TKey, mixed>
*
* @param A $arr
* @param TArray $arr
* @param mixed $search_value
* @param bool $strict
*
* @return (A is non-empty-array ? non-empty-list<T> : list<T>)
* @return (TArray is non-empty-array ? non-empty-list<TKey> : list<TKey>)
* @psalm-pure
*/
function array_keys(array $arr, $search_value = null, bool $strict = false)