- Fixes done on a bug within the ObjectResolver

This commit is contained in:
Dave M. 2021-02-16 03:07:27 +00:00
parent ed9a305e87
commit 61fa5d220e
1 changed files with 15 additions and 11 deletions

View File

@ -76,11 +76,14 @@ class ObjectResolver {
if ($item['tag'] === $name) {
$list[] = $this->instanciateAnnotationObject($item);
}
}
foreach($this->properties as $property) {
foreach($property['tags'] as $item) {
if ( $item['tag'] === $name ) {
$list[$property['name']] = $this->instanciateAnnotationObject($item);
$list[$property['name']] ??= [];
$list[$property['name']][] = $this->instanciateAnnotationObject($item);
}
}
}
@ -88,8 +91,9 @@ class ObjectResolver {
foreach($this->methods as $method) {
foreach($method['tags'] as $item) {
if ( $item['tag'] === $name ) {
$list[$method['name']] = $this->instanciateAnnotationObject($item);
}
$list[$method['name']] ??= [];
$list[$method['name']][] = $this->instanciateAnnotationObject($item);
}
}
}