From a3f591a556576e031a63ec5c03b17bb192ac3eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 28 Oct 2021 17:05: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 --- kiri-note/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-note/Loader.php b/kiri-note/Loader.php index 8f7caaa5..25890ff0 100644 --- a/kiri-note/Loader.php +++ b/kiri-note/Loader.php @@ -152,7 +152,7 @@ class Loader extends BaseObject private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass { $class = $this->explodeFileName($path, $namespace); - if (!class_exists($class)) { + if (!class_exists($class) && !interface_exists($class)) { return null; } return Kiri::getDi()->getReflect($class);