From 51c34d148803ead53f2bfe4b126f5ef98860ccb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 01:00: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/Loader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index e19d4b85..67ed65d4 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -173,9 +173,10 @@ class Loader extends BaseObject $_array['methods'][$method->getName()] = $_method; } - $methods = $replace->getProperties(ReflectionMethod::IS_PUBLIC ^ ReflectionProperty::IS_STATIC); + $methods = $replace->getProperties(); foreach ($methods as $method) { $_property = []; + if ($method->isStatic()) continue; foreach ($method->getAttributes() as $attribute) { if (!class_exists($attribute->getName())) { continue;