diff --git a/src/ZM/Utils/CommandInfoUtil.php b/src/ZM/Utils/CommandInfoUtil.php index 3eee0e44..20a6e747 100644 --- a/src/ZM/Utils/CommandInfoUtil.php +++ b/src/ZM/Utils/CommandInfoUtil.php @@ -7,6 +7,7 @@ namespace ZM\Utils; use JetBrains\PhpStorm\ArrayShape; use ReflectionException; use ReflectionMethod; +use ZM\Annotation\CQ\CommandArgument; use ZM\Annotation\CQ\CQCommand; use ZM\Console\Console; use ZM\Event\EventManager; diff --git a/tests/ZM/Utils/MessageUtilTest.php b/tests/ZM/Utils/MessageUtilTest.php index 9683df74..f388b731 100644 --- a/tests/ZM/Utils/MessageUtilTest.php +++ b/tests/ZM/Utils/MessageUtilTest.php @@ -52,7 +52,7 @@ class MessageUtilTest extends TestCase $cmd->class = self::class; $cmd->method = __FUNCTION__; EventManager::addEvent(CQCommand::class, $cmd); - $help = resolve(CommandInfoUtil::class)->getHelp(self::class . '@' . __FUNCTION__); + $help = resolve(CommandInfoUtil::class)->getHelp(self::class . '@' . __FUNCTION__, true); $this->assertEquals('测试命令:作者很懒,啥也没说', $help); }