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);