1 | <?php declare(strict_types=1); |
||
14 | final class Client implements ClientInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var LoopInterface |
||
18 | */ |
||
19 | private $loop; |
||
20 | |||
21 | /** |
||
22 | * @var AsyncClient |
||
23 | */ |
||
24 | private $asyncClient; |
||
25 | |||
26 | /** |
||
27 | * @param LoopInterface $loop |
||
28 | * @param AsyncClient $client |
||
29 | */ |
||
30 | 1 | private function __construct(LoopInterface $loop, AsyncClient $client) |
|
35 | |||
36 | /** |
||
37 | * @param AuthenticationInterface $auth |
||
38 | * @param array $options |
||
39 | * @return Client |
||
40 | */ |
||
41 | 1 | public static function create( |
|
62 | |||
63 | public function hydrate(string $resource): ResourceInterface |
||
70 | |||
71 | public function extract(ResourceInterface $resource): string |
||
78 | |||
79 | /** |
||
80 | * @param string $user |
||
81 | * @return UserInterface |
||
82 | */ |
||
83 | public function user(string $user): UserInterface |
||
90 | |||
91 | /** |
||
92 | * @return RateLimitState |
||
93 | */ |
||
94 | 1 | public function getRateLimitState(): RateLimitState |
|
98 | } |
||
99 |
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: