diff --git a/src/Components/swoole/src/Context/CoroutineContextManager.php b/src/Components/swoole/src/Context/CoroutineContextManager.php index ddb07a810..951532354 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 {