From e1d460b2ba6be4d0f70035f46960ea78b3095f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 25 Apr 2021 11:53:20 +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 c3daf1b7..3083dab6 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -251,7 +251,7 @@ class Container extends BaseObject $className = $reflectionClass->getName(); foreach ($lists as $list) { $targets = $list->getAttributes(Inject::class); - if (count($targets)) { + if (count($targets) < 1) { continue; }