This commit is contained in:
2021-03-04 01:00:00 +08:00
parent f87a7ece13
commit 51c34d1488
+2 -1
View File
@@ -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;