This commit is contained in:
2021-03-03 20:05:08 +08:00
parent 47787e9a38
commit a65d9f6ac1
+5 -3
View File
@@ -84,12 +84,14 @@ if (!function_exists('recursive_directory')) {
return; return;
} }
/** @var Attribute $attribute */ /** @var Attribute $value */
foreach ($annotations['methods'] as $name => $attribute) { foreach ($annotations['methods'] as $name => $attribute) {
if (!($attribute instanceof Attribute)) { foreach ($attribute as $value) {
if (!($value instanceof Attribute)) {
continue; continue;
} }
$attribute->execute([$annotations['handler'], $name]); $value->execute([$annotations['handler'], $name]);
}
} }
} }