Skip to content

Commit

Permalink
移除getServer类型限定
Browse files Browse the repository at this point in the history
  • Loading branch information
evalor committed Jul 12, 2018
1 parent 1f29ec6 commit 550e722
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Core/Swoole/ServerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 550e722

Please sign in to comment.