mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-26 10:05:34 +08:00
fix attribute php74 compatibility
This commit is contained in:
@@ -26,19 +26,7 @@ class CommandInfoUtil
|
|||||||
/**
|
/**
|
||||||
* 获取命令信息
|
* 获取命令信息
|
||||||
*/
|
*/
|
||||||
#[ArrayShape([[
|
#[ArrayShape([['id' => 'string', 'call' => 'callable', 'descriptions' => ['string'], 'triggers' => ['trigger_name' => ['string']], 'args' => ['arg_name' => ['name' => 'string', 'type' => 'string', 'description' => 'string', 'default' => 'mixed', 'required' => 'bool']]]])]
|
||||||
'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
|
public function get(): array
|
||||||
{
|
{
|
||||||
if (!$this->exists()) {
|
if (!$this->exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user