This commit is contained in:
2021-04-19 15:44:21 +08:00
parent aa738e1b5e
commit 1f68570bf1
+5 -3
View File
@@ -86,9 +86,11 @@ class Annotation extends Component
*/ */
public function runtime(string $dir, string|array $outPath = '') public function runtime(string $dir, string|array $outPath = '')
{ {
// if (!empty($outPath) && !is_array($outPath)) { if (empty($outPath)) {
// $outPath = [$outPath]; $outPath = [];
// } } else if (is_string($outPath)) {
$outPath = [$outPath];
}
$this->_loader->loadByDirectory($dir, $outPath); $this->_loader->loadByDirectory($dir, $outPath);
} }