Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function inject(Container $container): array |
||
31 | { |
||
32 | $bindings = $this->bind->getBindings(); |
||
33 | $instantiatedBindings = []; |
||
34 | foreach ($bindings as $methodName => $interceptorClassNames) { |
||
35 | $interceptors = []; |
||
36 | foreach ($interceptorClassNames as $interceptorClassName) { |
||
37 | /** @var class-string $interceptorClassName */ |
||
38 | $interceptor = $container->getInstance($interceptorClassName); |
||
39 | assert($interceptor instanceof MethodInterceptor); |
||
40 | $interceptors[] = $interceptor; |
||
41 | } |
||
42 | |||
43 | $instantiatedBindings[$methodName] = $interceptors; |
||
44 | } |
||
45 | |||
46 | return $instantiatedBindings; |
||
47 | } |
||
55 |
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