| Conditions | 3 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 35 | public function getComponentObjects(SimpleAnnotationReader $annotationReader) : array |
||
| 36 | { |
||
| 37 | $fields = $this->getFields(); |
||
| 38 | $objects = []; |
||
| 39 | |||
| 40 | array_walk_recursive($fields, function ($value) use ($annotationReader, &$objects) { |
||
| 41 | if ($value instanceof AbstractAnnotation) { |
||
| 42 | $objects = array_merge($objects, $value->getComponentObjects($annotationReader)); |
||
| 43 | return; |
||
| 44 | } |
||
| 45 | |||
| 46 | if ($value instanceof AbstractReference) { |
||
| 47 | $object = $value->getAnnotation($annotationReader); |
||
| 48 | $objects[] = $object; |
||
| 49 | $objects = array_merge($objects, $object->getComponentObjects($annotationReader)); |
||
|
|
|||
| 50 | return; |
||
| 51 | } |
||
| 52 | }); |
||
| 53 | |||
| 54 | return $objects; |
||
| 55 | } |
||
| 57 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.