From 530f2ea98d013328f7b3701df673683d4eac9481 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 29 Sep 2022 23:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Context.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiri-engine/Context.php b/kiri-engine/Context.php index 9c797219..c9b5b647 100644 --- a/kiri-engine/Context.php +++ b/kiri-engine/Context.php @@ -110,12 +110,12 @@ class Context extends BaseContext /** * @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) { - return Coroutine::getContext($coroutineId) ?? []; + return Coroutine::getContext((int)$coroutineId) ?? []; } else { return static::$_contents ?? []; }