From 02eb7c2affbc9ef020b02801b4b21c69c7e4fd5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= Date: Sun, 27 Sep 2020 16:25:56 +0800 Subject: [PATCH] Fixed crontab does not works when using coroutine style server. (#2590) * Added PHPDOc. * Fixed crontab does not works when using coroutine style server. --- src/ProcessInterface.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ProcessInterface.php b/src/ProcessInterface.php index 7c568bb..830353f 100644 --- a/src/ProcessInterface.php +++ b/src/ProcessInterface.php @@ -11,6 +11,7 @@ */ namespace Hyperf\Contract; +use Swoole\Coroutine\Http\Server as CoHttpServer; use Swoole\Coroutine\Server as CoServer; use Swoole\Server; @@ -18,7 +19,7 @@ interface ProcessInterface { /** * Create the process object according to process number and bind to server. - * @param CoServer|Server $server + * @param CoHttpServer|CoServer|Server $server */ public function bind($server): void;