From c2ae5aec7ef19d9e1194da333cdb90e05c348f0a Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 03:33:25 +0800 Subject: [PATCH] modify --- System/Di/Container.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index 43fd34fb..abdc9480 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -178,9 +178,9 @@ class Container extends BaseObject } else { $reflection = $this->_reflection[$class]; } - if (!is_null($construct = $reflection->getConstructor())) { - $constrict = $this->resolveMethodParam($construct); - } +// if (!is_null($construct = $reflection->getConstructor())) { +// $constrict = $this->resolveMethodParam($construct); +// } return [$reflection, $constrict]; } @@ -229,7 +229,7 @@ class Container extends BaseObject return $reflect; } $reflect = $this->resolveDependencies($class); - if (!is_null($reflect)) { + if (is_array($reflect)) { return $reflect[0]; } return null;