From 83cf62cbbaaadd39740dd291fa3d16a11f02b2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 15:19:50 +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/Annotation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 90bae1e9..5d7807aa 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -88,7 +88,7 @@ class Annotation extends Component { if ($outPath === null) { $outPath = []; - } else if (!is_array($outPath)) { + } else if (!empty($outPath) && !is_array($outPath)) { $outPath = [$outPath]; } $this->_loader->loadByDirectory($dir, $outPath);