| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.0416 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 37 | 4 | public function finalize(): void |
|
| 38 | { |
||
| 39 | 4 | $query = $this->typeRegistry->get($this->config->getQueryType()); |
|
| 40 | 4 | if (! $query instanceof DynamicObjectTypeInterface) { |
|
| 41 | return; |
||
| 42 | } |
||
| 43 | |||
| 44 | 4 | foreach ($this->classes as $class) { |
|
| 45 | 1 | $query->addAdditionalField($this->container->get($class)); |
|
| 46 | } |
||
| 49 |
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.