This commit is contained in:
2021-08-01 11:18:09 +08:00
parent eb08fbaa0b
commit a0f1d7d933
+2 -1
View File
@@ -72,6 +72,7 @@ class ServerManager extends Abstracts\Server
* @throws NotFindClassException * @throws NotFindClassException
* @throws ReflectionException * @throws ReflectionException
* @throws ConfigException * @throws ConfigException
* @throws Exception
*/ */
public function addListener(string $type, string $host, int $port, int $mode, array $settings = []) public function addListener(string $type, string $host, int $port, int $mode, array $settings = [])
{ {
@@ -308,7 +309,7 @@ class ServerManager extends Abstracts\Server
/** /**
* @param $port * @param $port
* @return bool * @return bool|string
*/ */
private function portIsAready($port): bool|string private function portIsAready($port): bool|string
{ {