From a005b953c30e91235e905d00f31bfbf6cc2522b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 17:22:51 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index e80c75f5..1a6a62c4 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -222,8 +222,8 @@ class Loader extends BaseObject } $annotations = $this->_classes[$className]; - if (isset($_array['target']) && !empty($_array['target'])) { - foreach ($_array['target'] as $value) { + if (isset($annotations['target']) && !empty($annotations['target'])) { + foreach ($annotations['target'] as $value) { $value->execute([$annotations['handler']]); } }