This commit is contained in:
2021-04-19 15:19:50 +08:00
parent ee8cb7d06b
commit 83cf62cbba
+1 -1
View File
@@ -88,7 +88,7 @@ class Annotation extends Component
{ {
if ($outPath === null) { if ($outPath === null) {
$outPath = []; $outPath = [];
} else if (!is_array($outPath)) { } else if (!empty($outPath) && !is_array($outPath)) {
$outPath = [$outPath]; $outPath = [$outPath];
} }
$this->_loader->loadByDirectory($dir, $outPath); $this->_loader->loadByDirectory($dir, $outPath);