From 76c2a10a905f6f7a2d6ef989597242eb1771a9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Apr 2021 18:16:36 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 12e03f0d..7d859b4f 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -267,15 +267,15 @@ class Loader extends BaseObject $tree = null; $directory = $this->splitDirectory($filePath); + $_tmp = ''; if (!empty($outPath)) { $outPath = rtrim($outPath, '/'); + $this->addError($_tmp . '-->' . $outPath); } - $_tmp = ''; foreach ($directory as $key => $value) { $_tmp .= DIRECTORY_SEPARATOR . $value; if (!empty($outPath) && str_contains($_tmp, $outPath)) { - $this->addError($_tmp . '-->' . $value); break; } $tree = $this->getTree($tree, $value);