This commit is contained in:
2021-03-23 18:09:15 +08:00
parent 9523b00c7b
commit 35e4d3874b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -75,10 +75,10 @@ class Router extends HttpService implements RouterInterface
* @param $port
* @param Closure|array|string $closure
* @param null $method
* @return mixed
* @return Node|bool|null
* @throws Exception
*/
public function addPortListen($port, Closure|array|string $closure, $method = null): mixed
public function addPortListen($port, Closure|array|string $closure, $method = null): Node|null|bool
{
try {
if (!is_string($closure)) {