From 77884257c8a8a184c19fa19fb84f3ab7a8a91dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:10:39 +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, 3 insertions(+), 1 deletion(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index 5d48d96f..ecd4747e 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -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,