From bb8310dcf354f97d10cba712ebb7d19054baa704 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 25 Sep 2022 04:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Abstracts/AsyncServer.php | 3 +-- Abstracts/TraitServer.php | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Abstracts/AsyncServer.php b/Abstracts/AsyncServer.php index 09c59df..026c270 100644 --- a/Abstracts/AsyncServer.php +++ b/Abstracts/AsyncServer.php @@ -91,7 +91,7 @@ class AsyncServer implements ServerInterface /** * @return bool * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface|ReflectionException + * @throws NotFoundExceptionInterface */ public function shutdown(): bool { @@ -254,7 +254,6 @@ class AsyncServer implements ServerInterface * @return void * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface - * @throws ReflectionException */ public function start(): void { diff --git a/Abstracts/TraitServer.php b/Abstracts/TraitServer.php index 7b08c61..c599c33 100644 --- a/Abstracts/TraitServer.php +++ b/Abstracts/TraitServer.php @@ -13,13 +13,13 @@ trait TraitServer private array $_process = []; - - + + /** - * @param string|array $class + * @param string|array|BaseProcess $class * @return void */ - public function addProcess(string|array $class): void + public function addProcess(string|array|BaseProcess $class): void { if (is_string($class)) { $this->_process[] = $class;