Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Factory extends AbstractDefinition implements DefinitionInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var callable |
||
24 | */ |
||
25 | protected $callable; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $parameters; |
||
31 | |||
32 | /** |
||
33 | * Factory needs a name and a callable |
||
34 | * |
||
35 | * @param callable $callable |
||
36 | * @param array $parameters |
||
37 | */ |
||
38 | public function __construct( |
||
39 | callable $callable, |
||
40 | array $parameters = [] |
||
41 | ) { |
||
42 | $this->callable = $callable; |
||
43 | $this->parameters = $parameters; |
||
44 | } |
||
45 | 34 | ||
46 | /** |
||
47 | 34 | * Resolves the definition into a scalar or object |
|
48 | 34 | * |
|
49 | 34 | * @return mixed |
|
50 | */ |
||
51 | public function resolve(): mixed |
||
55 | } |
||
56 | } |
||
57 |
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