1 | <?php declare(strict_types=1); |
||
16 | class AsyncClient |
||
17 | { |
||
18 | /** |
||
19 | * @var ClientInterface |
||
20 | */ |
||
21 | private $client; |
||
22 | |||
23 | /** |
||
24 | * @param ClientInterface $client |
||
25 | */ |
||
26 | private function __construct(ClientInterface $client) |
||
30 | |||
31 | /** |
||
32 | * @param LoopInterface $loop |
||
33 | * @param string $token |
||
34 | * @param array $options |
||
35 | * @return AsyncClient |
||
36 | */ |
||
37 | public static function create( |
||
54 | |||
55 | /** |
||
56 | * @internal |
||
57 | * @param ClientInterface $client |
||
58 | * @return AsyncClient |
||
59 | */ |
||
60 | public static function createFromClient(ClientInterface $client): self |
||
64 | |||
65 | public function projects(): ObservableInterface |
||
69 | |||
70 | public function project(string $repository): PromiseInterface |
||
74 | |||
75 | public function addProject(string $provider, string $repository): PromiseInterface |
||
79 | } |
||
80 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: