From 5e4f5d4b6e574a4960a141c19e7c862c4df49fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 8 Apr 2021 10:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnClose.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/Events/OnClose.php b/HttpServer/Events/OnClose.php index b8af57a6..cdbe6ba2 100644 --- a/HttpServer/Events/OnClose.php +++ b/HttpServer/Events/OnClose.php @@ -4,11 +4,11 @@ declare(strict_types=1); namespace HttpServer\Events; +use Exception; use HttpServer\Abstracts\Callback; use Snowflake\Event; use Snowflake\Snowflake; use Swoole\Server; -use Exception; /** * Class OnClose @@ -33,7 +33,7 @@ class OnClose extends Callback if (!$event->exists(($name = $this->getName($clientInfo)))) { return; } - $event->trigger($name, [$fd, $server]); + $event->trigger($name, [$server, $fd]); } catch (\Throwable $exception) { $this->addError($exception, 'throwable'); } finally {