From 7222bf6ae64264f4b18187d37d4b6917aab8546e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Apr 2021 17:32:17 +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, 3 insertions(+), 2 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index bab080fa..83846646 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -279,9 +279,10 @@ class Loader extends BaseObject foreach ($directory as $key => $value) { $out_path .= DIRECTORY_SEPARATOR . $value; $this->error($filePath . '->' . $out_path); - if ($out_path !== $output) { - $tree = $this->getTree($tree, $value); + if (str_contains($filePath, $output)) { + continue; } + $tree = $this->getTree($tree, $value); } if ($tree instanceof FileTree) { $this->eachNode($tree->getChildes());