diff --git a/src/BaseMiddleware.php b/src/BaseMiddleware.php index 7a974dc..7d25f70 100644 --- a/src/BaseMiddleware.php +++ b/src/BaseMiddleware.php @@ -42,10 +42,8 @@ public function __init(): void /** * 获取本机IP. - * - * @return string */ - protected function getLocalIP() + protected function getLocalIP(): string { $list = swoole_get_local_ip(); if ($this->interface)