mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 17:45:34 +08:00
Fix context PHPDoc return type
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace ZM\Context;
|
namespace ZM\Context;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Stringable;
|
use Stringable;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
@@ -170,9 +171,9 @@ class Context implements ContextInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* only can used by cq->message event function
|
* only can used by cq->message event function
|
||||||
* @param array|string $msg 要回复的消息
|
* @param array|string $msg 要回复的消息
|
||||||
* @param bool $yield 是否协程挂起(true),是否绑定异步事件(Closure)
|
* @param bool|callable|Closure $yield 是否协程挂起(true),是否绑定异步事件(Closure)
|
||||||
* @return array|bool 返回API调用结果
|
* @return array|bool 返回API调用结果
|
||||||
*/
|
*/
|
||||||
public function reply($msg, $yield = false)
|
public function reply($msg, $yield = false)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user