From e789002c9e0ff2082500d11626835f63d02946f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 14:35: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/Annotation.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 4300f508..3f091156 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -203,17 +203,14 @@ class Annotation extends Component $this->_annotations[$name] = []; } - $array = []; foreach ($attributes as $attribute) { /** @var IAnnotation $class */ $class = $this->instance($attribute); if ($class === null) { continue; } - $array[] = $class->execute([$object, $method->getName()]); + $this->_annotations[$name][] = $class->execute([$object, $method->getName()]); } - - $this->_annotations[$name][] = $array; return []; }