From c29abf02ab6cbc94dea1faefe0ac9234094e998f Mon Sep 17 00:00:00 2001 From: liujian Date: Wed, 24 Jan 2024 19:26:25 +0800 Subject: [PATCH] Update vaga --- src/Engine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Engine.php b/src/Engine.php index f4532c6..9539b1c 100644 --- a/src/Engine.php +++ b/src/Engine.php @@ -161,8 +161,8 @@ public static function isSwoole(array $args): bool public static function isWorkerMan(array $args): bool { if (count($args) == 1) { - list($connection) = $args; - if ($connection instanceof \Workerman\Connection\TcpConnection) { + list($request) = $args; + if ($request instanceof \Workerman\Protocols\Http\Request) { return true; } }