1 | <?php declare(strict_types=1); |
||
10 | final class PingWebHookHandler |
||
11 | { |
||
12 | /** |
||
13 | * @var RequestService |
||
14 | */ |
||
15 | private $requestService; |
||
16 | |||
17 | /** |
||
18 | * @param RequestService $requestService |
||
19 | */ |
||
20 | public function __construct(RequestService $requestService) |
||
24 | |||
25 | /** |
||
26 | * @param PingWebHookCommand $command |
||
27 | * @return PromiseInterface |
||
28 | */ |
||
29 | public function handle(PingWebHookCommand $command): PromiseInterface |
||
36 | } |
||
37 |
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: