This commit is contained in:
2022-09-25 04:19:00 +08:00
parent 13b9344743
commit bb8310dcf3
2 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -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
{
+4 -4
View File
@@ -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;