mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-14 10:20:34 +08:00
Fix #20645: Add missing generics in yii\helpers and yii\test namespaces. Fix PHPDoc annotations in ArrayAccessTrait
This commit is contained in:
@@ -628,6 +628,9 @@ class BaseArrayHelper
|
||||
* @param array|ArrayAccess $array the array with keys to check
|
||||
* @param bool $caseSensitive whether the key comparison should be case-sensitive
|
||||
* @return bool whether the array contains the specified key
|
||||
*
|
||||
* @phpstan-param array<array-key, mixed>|ArrayAccess<array-key, mixed> $array
|
||||
* @psalm-param array<array-key, mixed>|ArrayAccess<array-key, mixed> $array
|
||||
*/
|
||||
public static function keyExists($key, $array, $caseSensitive = true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user