diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index d09d4ea1..580e5de0 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -86,9 +86,11 @@ class Annotation extends Component */ public function runtime(string $dir, string|array $outPath = '') { -// if (!empty($outPath) && !is_array($outPath)) { -// $outPath = [$outPath]; -// } + if (empty($outPath)) { + $outPath = []; + } else if (is_string($outPath)) { + $outPath = [$outPath]; + } $this->_loader->loadByDirectory($dir, $outPath); }