| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function process(ContainerBuilder $container) |
||
| 17 | { |
||
| 18 | if (!$container->hasDefinition(RequestResponseListener::class)) { |
||
| 19 | return; |
||
| 20 | } |
||
| 21 | |||
| 22 | $definition = $container->getDefinition(RequestResponseListener::class); |
||
| 23 | |||
| 24 | if (class_exists(TaggedIteratorArgument::class)) { |
||
| 25 | $definition->replaceArgument(2, new TaggedIteratorArgument('redirectionio.circuit_breaker')); |
||
| 26 | |||
| 27 | return; |
||
| 28 | } |
||
| 29 | |||
| 30 | $ids = []; |
||
| 31 | foreach ($container->findTaggedServiceIds('redirectionio.circuit_breaker') as $id => $_) { |
||
| 32 | $ids[] = new Reference($id); |
||
| 33 | } |
||
| 34 | $definition->replaceArgument(2, $ids); |
||
| 35 | } |
||
| 37 |
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