From bda5302c50f5cc1d19344d5937a2970d63dd4bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:43:46 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index eaac5686..73bc828d 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -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) }; }