modify plugin name
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Kiri\Server\Events;
|
||||
|
||||
use Swoole\Coroutine\Http\Server as CHServer;
|
||||
use Swoole\Coroutine\Server as CServer;
|
||||
use Swoole\Server;
|
||||
|
||||
class OnShutdown
|
||||
@@ -9,9 +11,9 @@ class OnShutdown
|
||||
|
||||
|
||||
/**
|
||||
* @param Server|null $server
|
||||
* @param Server|CHServer|CServer|null $server
|
||||
*/
|
||||
public function __construct(public ?Server $server = null)
|
||||
public function __construct(public Server|null|CHServer|CServer $server = null)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
namespace Kiri\Server\Events;
|
||||
|
||||
use Swoole\Server;
|
||||
use Swoole\Coroutine\Server as CServer;
|
||||
use Swoole\Coroutine\Http\Server as CHServer;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -12,10 +14,10 @@ class OnWorkerStart
|
||||
|
||||
|
||||
/**
|
||||
* @param Server|null $server
|
||||
* @param Server|CHServer|CServer|null $server
|
||||
* @param int $workerId
|
||||
*/
|
||||
public function __construct(public ?Server $server, public int $workerId)
|
||||
public function __construct(public Server|null|CHServer|CServer $server, public int $workerId)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Kiri\Server\Events;
|
||||
|
||||
use Swoole\Coroutine\Http\Server as CHServer;
|
||||
use Swoole\Coroutine\Server as CServer;
|
||||
use Swoole\Server;
|
||||
|
||||
/**
|
||||
@@ -12,10 +14,10 @@ class OnWorkerStop
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param Server|CHServer|CServer|null $server
|
||||
* @param int $workerId
|
||||
*/
|
||||
public function __construct(public Server $server, public int $workerId)
|
||||
public function __construct(public Server|null|CHServer|CServer $server, public int $workerId)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user