From 5db8f60a8235f99ef147cafb66f484b5a13b94d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Apr 2021 17:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Loader.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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());