1
This commit is contained in:
@@ -186,8 +186,9 @@ class Context extends BaseContext
|
|||||||
if (!isset(Coroutine::getContext($coroutineId)[$id])) {
|
if (!isset(Coroutine::getContext($coroutineId)[$id])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($key !== null) {
|
$value = Coroutine::getContext($coroutineId)[$id];
|
||||||
return isset((Coroutine::getContext($coroutineId)[$id] ?? [])[$key]);
|
if ($key !== null && is_array($value)) {
|
||||||
|
return isset($value[$key]);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user