1 | <?php |
||
10 | class RpcQueueCallback implements QueueCallbackInterface |
||
11 | { |
||
12 | private $queueService; |
||
13 | |||
14 | public function __construct(QueueServiceInterface $queueService) |
||
18 | |||
19 | /** |
||
20 | * @return QueueServiceInterface |
||
21 | */ |
||
22 | public function getQueueService() |
||
26 | |||
27 | /** |
||
28 | * @return \Closure |
||
29 | */ |
||
30 | public function toClosure() |
||
50 | } |
||
51 |
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: