This commit is contained in:
2021-10-28 17:05:48 +08:00
parent b764cc64aa
commit a3f591a556
+1 -1
View File
@@ -152,7 +152,7 @@ class Loader extends BaseObject
private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass
{ {
$class = $this->explodeFileName($path, $namespace); $class = $this->explodeFileName($path, $namespace);
if (!class_exists($class)) { if (!class_exists($class) && !interface_exists($class)) {
return null; return null;
} }
return Kiri::getDi()->getReflect($class); return Kiri::getDi()->getReflect($class);