From e0ede0b5b5fb433ccd164e1d4071a5e73a563e99 Mon Sep 17 00:00:00 2001 From: Yurun Date: Wed, 10 Jan 2024 10:21:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20RequestContext::exists()?= =?UTF-8?q?=20(#671)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Components/swoole/src/Context/CoroutineContextManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/swoole/src/Context/CoroutineContextManager.php b/src/Components/swoole/src/Context/CoroutineContextManager.php index ddb07a8105..951532354a 100644 --- a/src/Components/swoole/src/Context/CoroutineContextManager.php +++ b/src/Components/swoole/src/Context/CoroutineContextManager.php @@ -119,7 +119,7 @@ public function exists(string $flag): bool { if ($flag > -1) { - return Coroutine::exists($flag); + return Coroutine::exists((int) $flag); } else {