From 49b78255d66bb2d232cf57c70586b40b7a9c0dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 11:57:31 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index c681f736..18bd63a3 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -230,11 +230,11 @@ class Loader extends BaseObject if (!isset($this->_directory[$path])) { return; } - foreach ($this->_directory[$path] as $key => $path) { - if (!str_starts_with($key, $path)) { + foreach ($this->_directory[$path] as $key => $_path) { + if (!str_starts_with($key, $_path)) { continue; } - $this->execute($this->_directory[$path]); + $this->execute($this->_directory[$_path]); } } catch (Throwable $exception) { $this->addError($exception, 'throwable');