Fix context PHPDoc return type

This commit is contained in:
crazywhalecc
2022-04-03 00:47:44 +08:00
committed by Jerry Ma
parent a9276d3f72
commit 17492c78fa

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace ZM\Context;
use Closure;
use Exception;
use Stringable;
use Swoole\Coroutine;
@@ -170,9 +171,9 @@ class Context implements ContextInterface
/**
* only can used by cq->message event function
* @param array|string $msg 要回复的消息
* @param bool $yield 是否协程挂起true是否绑定异步事件Closure
* @return array|bool 返回API调用结果
* @param array|string $msg 要回复的消息
* @param bool|callable|Closure $yield 是否协程挂起true是否绑定异步事件Closure
* @return array|bool 返回API调用结果
*/
public function reply($msg, $yield = false)
{