From 707a1ae628194270d820e205a9d21662df546a7a Mon Sep 17 00:00:00 2001 From: sunxyw Date: Tue, 3 May 2022 13:18:09 +0800 Subject: [PATCH] fix attribute php74 compatibility --- src/ZM/Utils/CommandInfoUtil.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/ZM/Utils/CommandInfoUtil.php b/src/ZM/Utils/CommandInfoUtil.php index 20a6e747..3e42fe88 100644 --- a/src/ZM/Utils/CommandInfoUtil.php +++ b/src/ZM/Utils/CommandInfoUtil.php @@ -26,19 +26,7 @@ class CommandInfoUtil /** * 获取命令信息 */ - #[ArrayShape([[ - 'id' => 'string', - 'call' => 'callable', - 'descriptions' => ['string'], - 'triggers' => ['trigger_name' => ['string']], - 'args' => ['arg_name' => [ - 'name' => 'string', - 'type' => 'string', - 'description' => 'string', - 'default' => 'mixed', - 'required' => 'bool', - ]], - ]])] + #[ArrayShape([['id' => 'string', 'call' => 'callable', 'descriptions' => ['string'], 'triggers' => ['trigger_name' => ['string']], 'args' => ['arg_name' => ['name' => 'string', 'type' => 'string', 'description' => 'string', 'default' => 'mixed', 'required' => 'bool']]]])] public function get(): array { if (!$this->exists()) {