From 9cd8769711d6b63f7ceb185b768ef2764be0485e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 25 Apr 2021 11:59: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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index af6125de..da647e25 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -232,7 +232,7 @@ class Container extends BaseObject $this->_constructs[$class] = $this->resolveMethodParam($construct); } - return [$reflection, $this->_constructs[$class]]; + return [$reflection, $this->_constructs[$class] ?? []]; }