1 | <?php |
||
7 | class Bot implements BotInterface |
||
8 | { |
||
9 | use \League\Event\EmitterTrait; |
||
10 | |||
11 | /** @var APIPollClient */ |
||
12 | private $client; |
||
13 | |||
14 | /** |
||
15 | * @param APIClient $client |
||
16 | */ |
||
17 | 7 | public function __construct(APIPollClient $client) |
|
21 | |||
22 | 1 | public function poll() |
|
26 | |||
27 | /** |
||
28 | * @param \React\HttpClient\Response $response |
||
29 | */ |
||
30 | 1 | public function _handlePollResponse(\React\HttpClient\Response $response) |
|
35 | |||
36 | /** |
||
37 | * @param array $data |
||
38 | * @param \React\HttpClient\Response $response |
||
39 | */ |
||
40 | 2 | public function _handlePollData($data, $response) |
|
59 | |||
60 | /** |
||
61 | * @param \React\HttpClient\Response $response |
||
62 | */ |
||
63 | 1 | public function _handlePollError(\React\HttpClient\Response $response) |
|
67 | |||
68 | /** |
||
69 | * @param APIMessage $message |
||
70 | * @return function |
||
71 | */ |
||
72 | public function getResponder(APIMessage $message) |
||
78 | } |
||
79 |
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: