From 38c1aca27ed4929e4dfc7cdfc700c6d01e58557b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 18:16:41 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 3f9c3183..7780d5ac 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -80,9 +80,9 @@ class Annotation extends Component $this->_annotations[$alias] = []; } foreach ($paths as $path) { -// if (!str_contains('.php', $path)) { -// continue; -// } + if (!str_contains($path, '.php')) { + continue; + } $explode = explode('/', $path); $explode_pop = array_pop($explode);