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(); }