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