From d7894086ca4705bafcfdbbbe853f47e9f3d5d196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Apr 2021 18:14:27 +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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 59a7c4c3..990155c8 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -260,6 +260,7 @@ class Loader extends BaseObject * @param string $filePath * @param string|null $outPath * @return $this + * @throws Exception */ private function each(string $filePath, ?string $outPath): static { @@ -274,6 +275,7 @@ class Loader extends BaseObject foreach ($directory as $key => $value) { $_tmp .= DIRECTORY_SEPARATOR . $value; if (str_contains($_tmp, $outPath)) { + $this->addError($_tmp . '-->' . $value); break; } $tree = $this->getTree($tree, $value);