This commit is contained in:
2021-02-22 19:43:46 +08:00
parent 9fd97cf0c2
commit bda5302c50
+2 -2
View File
@@ -181,11 +181,11 @@ class Container extends BaseObject
}
return match ($type = $param->getType()) {
'mixed' => $param->getDefaultValue(),
'string' => '',
'array' => [],
'int', 'float' => 0,
'bool' => false,
'', null, 'object' => NULL,
'string', null => '',
'', 'object' => NULL,
default => Snowflake::createObject($type)
};
}