- Fixes done on a bug within the ObjectResolver
This commit is contained in:
parent
ed9a305e87
commit
61fa5d220e
|
@ -73,14 +73,17 @@ class ObjectResolver {
|
|||
|
||||
if ( $name = $this->uses[$className] ?? false) {
|
||||
foreach($this->class['tags'] as $item) {
|
||||
if ( $item['tag'] === $name ) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue