From 11b10eecace0ec02611e0e1e4288059cb43d758f Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 03:45:14 +0800 Subject: [PATCH] modify --- Annotation/Annotation.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 18728dae..07ce1fb7 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -148,12 +148,7 @@ class Annotation extends Component if ($method->class != $class) { continue; } - - $tmp = $this->resolveAnnotations($method, $alias, $object); - if (empty($tmp)) { - continue; - } - $this->_classes[$reflect->getName()][$method->getName()] = $tmp; + $this->resolveAnnotations($method, $alias, $object); } $this->resolveProperty($reflect, $object); } @@ -233,7 +228,7 @@ class Annotation extends Component // // $this->_annotations[$alias][] = $tmp; - return $tmp; + return []; }