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;