1 | <?php |
||
22 | class CommandMessage extends \PEIP\Message\GenericMessage implements \PEIP\INF\Command\Command |
||
23 | { |
||
24 | /** |
||
25 | * @param $content |
||
26 | * @param $headers |
||
27 | * |
||
28 | * @return |
||
29 | */ |
||
30 | public function __construct($content, ArrayAccess $headers = null) |
||
39 | |||
40 | /** |
||
41 | * @return |
||
42 | */ |
||
43 | public function execute() |
||
51 | } |
||
52 |
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: