1 | <?php declare(strict_types=1); |
||
13 | final class Client implements ClientInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var LoopInterface |
||
17 | */ |
||
18 | private $loop; |
||
19 | |||
20 | /** |
||
21 | * @var AsyncClientInterface |
||
22 | */ |
||
23 | private $client; |
||
24 | |||
25 | /** |
||
26 | * @param LoopInterface $loop |
||
27 | * @param AsyncClientInterface $client |
||
28 | */ |
||
29 | private function __construct(LoopInterface $loop, AsyncClientInterface $client) |
||
34 | |||
35 | /** |
||
36 | * @param string $token |
||
37 | * @param array $options |
||
38 | * @return Client |
||
39 | */ |
||
40 | public static function create( |
||
59 | |||
60 | public function projects(): array |
||
69 | |||
70 | public function project(string $repository): Project |
||
77 | } |
||
78 |
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: