From 30b7544ad44c12c8dfc5c05c7dee956cde05f00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 11:59:49 +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, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 90125d76..bd9aaf06 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -231,7 +231,7 @@ class Loader extends BaseObject return; } foreach ($this->_directory[$path] as $key => $_path) { - if (!str_starts_with($key, $path)) { + if (!str_contains($key, $path)) { continue; } $this->execute($this->_directory[$_path]);