From d5c9b0fb4fb740807cfbc004805fbad8398df7eb Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 00:47:58 +0800 Subject: [PATCH] modify --- 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 d2bcb634..f626a467 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -172,7 +172,7 @@ class Container extends BaseObject } $constructs = $reflection->getConstructor(); if (empty($constructs) || count($constructs->getParameters()) < 1) { - return [$reflection, []]; + return [$reflection, $this->_constructs[$class] = []]; } foreach ($constructs->getParameters() as $key => $param) { if ($param->isDefaultValueAvailable()) {