I think the stub should be like
/**
* @psalm-template TKey as array-key
*
* @param TKey $key
* @param array<TKey, mixed>|\ArrayObject<TKey, mixed> $search
*
* @return bool
*/
function array_key_exists($key, array $search) : bool
{
}
Thanks - would you mind PRing?
Yep, I'll have a quick look whether any other similar functions require it as well first.