diff --git a/System/Di/Container.php b/System/Di/Container.php index 9eb69da8..0a7f00d3 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -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) }; }