diff --git a/Annotation/Loader.php b/Annotation/Loader.php index a409af2e..aa016a6c 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -277,10 +277,9 @@ class Loader extends BaseObject $out_path = ''; foreach ($directory as $key => $value) { $out_path .= DIRECTORY_SEPARATOR . $value; - if ($out_path === $output) { - break; + if ($out_path !== $output) { + $tree = $this->getTree($tree, $value); } - $tree = $this->getTree($tree, $value); } if ($tree instanceof FileTree) { $this->eachNode($tree->getChildes());