1 | <?php |
||
8 | class Queue |
||
9 | { |
||
10 | /** |
||
11 | * @var DriverInterface |
||
12 | */ |
||
13 | private $driver; |
||
14 | |||
15 | /** |
||
16 | * @param DriverInterface $driver |
||
17 | */ |
||
18 | 1 | public function __construct(DriverInterface $driver) |
|
22 | |||
23 | /** |
||
24 | * Add a message to the queue |
||
25 | * |
||
26 | * @param string $queue |
||
27 | * @param string $command |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | 1 | public function add($queue, $command) |
|
35 | } |
||
36 |
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: