Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | protected function fromInterfaceMethod(string $name) { |
||
25 | if (interface_exists($name, true) === false) |
||
26 | return null; |
||
27 | |||
28 | $bean = $this->fromMethod($this->interfaceToFactory($name)); |
||
29 | if ($bean === null) |
||
30 | return null; |
||
31 | |||
32 | if (is_subclass_of($bean->value, $name) === false) |
||
33 | throw new NotTheRequestedInterface(get_class($bean->value), $name); |
||
34 | |||
35 | $bean->addAlias($name); |
||
36 | return $bean; |
||
37 | } |
||
46 | } |
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