This commit is contained in:
2021-02-22 19:10:39 +08:00
parent a38ec33851
commit 77884257c8
+3 -1
View File
@@ -193,7 +193,9 @@ class Container extends BaseObject
return $param->getDefaultValue();
}
try {
return match ($type = $param->getType()) {
$type = $param->getType();
var_dump($type);
return match ($type) {
'mixed' => $param->getDefaultValue(),
'string' => '',
'int', 'float' => 0,