Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | final class Context implements ContextInterface |
||
23 | { |
||
24 | private AmphpContext $amphp_context; |
||
25 | /** @var T object */ |
||
26 | private object $protocol_interface; |
||
27 | |||
28 | /** |
||
29 | * Context constructor. |
||
30 | * @param AmphpContext $amphp_context |
||
31 | * @param T $protocol_interface |
||
32 | */ |
||
33 | public function __construct( |
||
34 | AmphpContext $amphp_context, |
||
35 | object $protocol_interface |
||
36 | ) { |
||
37 | $this->amphp_context = $amphp_context; |
||
38 | $this->protocol_interface = $protocol_interface; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return Promise<null> |
||
43 | */ |
||
44 | public function start(): Promise |
||
47 | } |
||
48 | |||
49 | public function isRunning(): bool |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return T |
||
56 | */ |
||
57 | public function getProtocol(): object |
||
62 |
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