Fix #20645: Add missing generics in yii\helpers and yii\test namespaces. Fix PHPDoc annotations in ArrayAccessTrait

This commit is contained in:
Maksim Spirkov
2025-10-28 14:58:58 +03:00
committed by GitHub
parent 503828ef3a
commit ed9af8a551
5 changed files with 29 additions and 4 deletions

View File

@@ -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)
{