| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1.0109 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 3 | public function resolve(ContainerInterface $container): mixed |
|
| 21 | { |
||
| 22 | 3 | $factory = $container->get(LazyLoadingValueHolderFactory::class); |
|
| 23 | 3 | $definition = $this->definition; |
|
| 24 | 3 | $objectClass = $this->objectClass; |
|
| 25 | |||
| 26 | 3 | return $factory->createProxy( |
|
| 27 | 3 | $objectClass, |
|
| 28 | 3 | function (&$wrappedObject) use ($container, $objectClass, $definition) { |
|
| 29 | $definition = DefinitionNormalizer::normalize($definition, $objectClass); |
||
| 30 | $wrappedObject = $definition->resolve($container); |
||
| 31 | 3 | } |
|
| 35 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths