This commit is contained in:
2021-03-31 18:20:23 +08:00
parent 62c4f995b9
commit 627faaf0c9
+2 -2
View File
@@ -82,14 +82,14 @@ if (!function_exists('annotation')) {
} }
if (!function_exists('swoole')) { if (!function_exists('swoole')) {
/** /**
* @return Server|null
* @throws Exception * @throws Exception
*/ */
function swoole(): Swoole\Server|Server function swoole(): ?Server
{ {
return Snowflake::getWebSocket(); return Snowflake::getWebSocket();
} }