变更
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user