From 2179222a820d38ef73e8e3bf78f11665eb39056c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 3 Mar 2021 19:10:48 +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 --- Annotation/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index dbf5bd3e..7c736ff8 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -143,7 +143,7 @@ class Loader extends BaseObject try { $replace = Snowflake::getDi()->getReflect($namespace . implode('\\', $explode)); - if (!$replace->isInstantiable()) { + if (empty($replace) || !$replace->isInstantiable()) { continue; }