From 627faaf0c960b8d757ce92ea57227672b20a0ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 31 Mar 2021 18:20:23 +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 --- function.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/function.php b/function.php index 073fa246..1552f2d3 100644 --- a/function.php +++ b/function.php @@ -82,14 +82,14 @@ if (!function_exists('annotation')) { } - if (!function_exists('swoole')) { /** + * @return Server|null * @throws Exception */ - function swoole(): Swoole\Server|Server + function swoole(): ?Server { return Snowflake::getWebSocket(); }