1 | <?php declare(strict_types=1); |
||
18 | class AsyncClient |
||
19 | { |
||
20 | /** |
||
21 | * @var ClientInterface |
||
22 | */ |
||
23 | private $client; |
||
24 | |||
25 | /** |
||
26 | * @param LoopInterface $loop |
||
27 | * @param string $token |
||
28 | * @param array $options |
||
29 | * @return AsyncClient |
||
30 | */ |
||
31 | public static function create( |
||
48 | |||
49 | /** |
||
50 | * @internal |
||
51 | * @param ClientInterface $client |
||
52 | * @return AsyncClient |
||
53 | */ |
||
54 | public static function createFromClient(ClientInterface $client): self |
||
58 | |||
59 | /** |
||
60 | * @param ClientInterface $client |
||
61 | */ |
||
62 | private function __construct(ClientInterface $client) |
||
66 | |||
67 | public function projects(): ObservableInterface |
||
71 | |||
72 | public function project(string $repository): PromiseInterface |
||
76 | } |
||
77 |
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: