From cae0230dd064be3fa750ab38883711aa72595d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 20:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Di/Container.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }; }