- Fixes done on a bug within the ObjectResolver
This commit is contained in:
parent
ed9a305e87
commit
61fa5d220e
|
@ -73,23 +73,27 @@ class ObjectResolver {
|
||||||
|
|
||||||
if ( $name = $this->uses[$className] ?? false) {
|
if ( $name = $this->uses[$className] ?? false) {
|
||||||
foreach($this->class['tags'] as $item) {
|
foreach($this->class['tags'] as $item) {
|
||||||
if ( $item['tag'] === $name ) {
|
if ($item['tag'] === $name) {
|
||||||
$list[] = $this->instanciateAnnotationObject($item);
|
$list[] = $this->instanciateAnnotationObject($item);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach($this->properties as $property) {
|
foreach($this->properties as $property) {
|
||||||
foreach($property['tags'] as $item) {
|
foreach($property['tags'] as $item) {
|
||||||
if ( $item['tag'] === $name ) {
|
if ( $item['tag'] === $name ) {
|
||||||
$list[$property['name']] = $this->instanciateAnnotationObject($item);
|
$list[$property['name']] ??= [];
|
||||||
}
|
|
||||||
|
$list[$property['name']][] = $this->instanciateAnnotationObject($item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach($this->methods as $method) {
|
foreach($this->methods as $method) {
|
||||||
foreach($method['tags'] as $item) {
|
foreach($method['tags'] as $item) {
|
||||||
if ( $item['tag'] === $name ) {
|
if ( $item['tag'] === $name ) {
|
||||||
$list[$method['name']] = $this->instanciateAnnotationObject($item);
|
$list[$method['name']] ??= [];
|
||||||
}
|
|
||||||
|
$list[$method['name']][] = $this->instanciateAnnotationObject($item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue