改名
This commit is contained in:
@@ -181,11 +181,11 @@ class Container extends BaseObject
|
|||||||
}
|
}
|
||||||
return match ($type = $param->getType()) {
|
return match ($type = $param->getType()) {
|
||||||
'mixed' => $param->getDefaultValue(),
|
'mixed' => $param->getDefaultValue(),
|
||||||
'string' => '',
|
|
||||||
'array' => [],
|
'array' => [],
|
||||||
'int', 'float' => 0,
|
'int', 'float' => 0,
|
||||||
'bool' => false,
|
'bool' => false,
|
||||||
'', null, 'object' => NULL,
|
'string', null => '',
|
||||||
|
'', 'object' => NULL,
|
||||||
default => Snowflake::createObject($type)
|
default => Snowflake::createObject($type)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user