This commit is contained in:
2021-02-23 14:35:11 +08:00
parent c37e7e95c2
commit e789002c9e
+1 -4
View File
@@ -203,17 +203,14 @@ class Annotation extends Component
$this->_annotations[$name] = [];
}
$array = [];
foreach ($attributes as $attribute) {
/** @var IAnnotation $class */
$class = $this->instance($attribute);
if ($class === null) {
continue;
}
$array[] = $class->execute([$object, $method->getName()]);
$this->_annotations[$name][] = $class->execute([$object, $method->getName()]);
}
$this->_annotations[$name][] = $array;
return [];
}