From 71b892f2b78baee9a461001e40e552a66fd8cf4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 18:32:00 +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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index fafceeae..36735dd8 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -115,6 +115,10 @@ class Annotation extends Component continue; } + if ($method->getName() == 'getGoods_descriptionAttribute') { + var_dump($method->getAttributes()); + } + $tmp = $this->resolveAnnotations($method, $alias, $object); $this->_classes[$reflect->getName()][$method->getName()] = $tmp; @@ -144,11 +148,6 @@ class Annotation extends Component private function resolveAnnotations(ReflectionMethod $method, $alias, $object): array { $attributes = $method->getAttributes(); - $this->debug($method->getName()); - if ($method->getName() == 'getGoods_descriptionAttribute') { - var_dump($method, $attributes); - } - if (count($attributes) < 1) { return []; }