From 014d48756f7d1c61ccd348f3c945c297af743e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:20:12 +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 656ec865..19b5616d 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -167,7 +167,7 @@ class Container extends BaseObject }; $constructs = $reflection->getConstructor(); if (!($constructs instanceof \ReflectionMethod)) { - return [$reflection, []]; + return [$reflection, $this->_constructs[$class] = []]; } foreach ($constructs->getParameters() as $key => $param) { $dependencies[] = $this->resolveDefaultValue($param);