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