This commit is contained in:
2021-09-06 15:50:09 +08:00
parent 2e7c63e012
commit 12369a5cbd
+1 -1
View File
@@ -133,7 +133,7 @@ class Loader extends BaseObject
return;
}
$replace = $this->getReflect($path, $namespace);
if (!$replace->getAttributes(Target::class)) {
if (!$replace || !$replace->getAttributes(Target::class)) {
return;
}
$this->appendFileToDirectory($path->getRealPath(), $replace->getName());