From 0a531bcb60cfd1ef050f1dac05a7561f5b28b8d1 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 00:57:38 +0800 Subject: [PATCH] modify --- System/Di/Container.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index b42cd13f..8aa472a7 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -164,8 +164,7 @@ class Container extends BaseObject return []; } $constructs = $reflection->getConstructor(); - var_dump($constructs); - if (empty($constructs) || count($constructs->getParameters()) < 1) { + if ($constructs === null || count($constructs->getParameters()) < 1) { return [$reflection, $this->_constructs[$class] = ['class' => $class]]; } $dependencies = [];