变更
This commit is contained in:
@@ -110,12 +110,12 @@ class Context extends BaseContext
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param null $coroutineId
|
* @param null $coroutineId
|
||||||
* @return mixed
|
* @return Coroutine\Context|array
|
||||||
*/
|
*/
|
||||||
public static function getAllContext($coroutineId = null): mixed
|
public static function getAllContext($coroutineId = null): Coroutine\Context|array
|
||||||
{
|
{
|
||||||
if (Coroutine::getCid() === -1) {
|
if (Coroutine::getCid() === -1) {
|
||||||
return Coroutine::getContext($coroutineId) ?? [];
|
return Coroutine::getContext((int)$coroutineId) ?? [];
|
||||||
} else {
|
} else {
|
||||||
return static::$_contents ?? [];
|
return static::$_contents ?? [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user