From 47787e9a3819851b3cee879664a0711704d557e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 3 Mar 2021 20:01:11 +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, 4 insertions(+) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index cfefeb56..a6e16069 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -149,6 +149,10 @@ class Loader extends BaseObject continue; } + if (!$replace->getAttributes(Target::class)) { + continue; + } + $_array = ['handler' => $replace->newInstanceWithoutConstructor(), 'target' => [], 'methods' => [], 'property' => []]; foreach ($replace->getAttributes() as $attribute) { if ($attribute->getName() == Attribute::class) {