diff --git a/src/Core/Swoole/ServerManager.php b/src/Core/Swoole/ServerManager.php index 59374315..dd7b665b 100644 --- a/src/Core/Swoole/ServerManager.php +++ b/src/Core/Swoole/ServerManager.php @@ -145,7 +145,11 @@ private function createMainServer():\swoole_server return $this->mainServer; } - public function getServer($serverName = null):?\swoole_server + /** + * @param string $serverName + * @return null|\swoole_server|\swoole_server_port + */ + public function getServer($serverName = null) { if($this->mainServer){ if($serverName === null){