From 878a73d99987f104c3d45578d6ab7dc42135bb58 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 8 Apr 2021 01:10:09 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 74836a0c..15ec5af1 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -276,7 +276,9 @@ class Loader extends BaseObject $tree = $this->files; foreach ($DIRECTORY as $value) { - var_dump($value); + if (empty($value)) { + continue; + } $tree = $tree->getChild($value); $tree->addFile($className); @@ -294,6 +296,9 @@ class Loader extends BaseObject $tree = null; foreach ($DIRECTORY as $value) { + if (empty($value)) { + continue; + } if ($tree === null) { $tree = $this->files->getChild($value); } else {