Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class CallableStage extends Task |
||
15 | { |
||
16 | /** @var object $stage */ |
||
17 | private $stage; |
||
18 | /** @var Client $elasticsearch */ |
||
19 | private $elasticsearch; |
||
20 | |||
21 | /** |
||
22 | * CallableStage constructor. |
||
23 | * @param object $stage |
||
24 | */ |
||
25 | public function __construct(object $stage) |
||
26 | { |
||
27 | $this->stage = $stage; |
||
28 | } |
||
29 | |||
30 | public function configure(): void |
||
31 | { |
||
32 | (new ElasticSearchServiceProvider(app()))->register(); |
||
33 | $this->elasticsearch = app(Client::class); |
||
34 | } |
||
35 | |||
36 | public function run(): void |
||
39 | } |
||
40 | } |
||
41 |
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