This commit is contained in:
2021-03-03 20:05:08 +08:00
parent 47787e9a38
commit a65d9f6ac1
+6 -4
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) {
continue; if (!($value instanceof Attribute)) {
continue;
}
$value->execute([$annotations['handler'], $name]);
} }
$attribute->execute([$annotations['handler'], $name]);
} }
} }