1 | <?php |
||
2 | |||
3 | /** |
||
4 | * This file is part of the sj-i/php-profiler package. |
||
5 | * |
||
6 | * (c) sji <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace PhpProfiler\Lib\Amphp; |
||
15 | |||
16 | use Amp\Parallel\Context\Context as AmphpContext; |
||
0 ignored issues
–
show
|
|||
17 | use Amp\Promise; |
||
0 ignored issues
–
show
The type
Amp\Promise was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
18 | |||
19 | /** @template-covariant T of MessageProtocolInterface */ |
||
20 | final class Context implements ContextInterface |
||
21 | { |
||
22 | /** @param T $protocol_interface */ |
||
0 ignored issues
–
show
The type
PhpProfiler\Lib\Amphp\T was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
23 | public function __construct( |
||
24 | private AmphpContext $amphp_context, |
||
25 | private object $protocol_interface |
||
26 | ) { |
||
27 | } |
||
28 | |||
29 | /** @return Promise<null> */ |
||
30 | public function start(): Promise |
||
31 | { |
||
32 | return $this->amphp_context->start(); |
||
33 | } |
||
34 | |||
35 | public function isRunning(): bool |
||
36 | { |
||
37 | return $this->amphp_context->isRunning(); |
||
38 | } |
||
39 | |||
40 | /** @return T */ |
||
41 | public function getProtocol(): object |
||
42 | { |
||
43 | return $this->protocol_interface; |
||
44 | } |
||
45 | } |
||
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