1 | <?php |
||
9 | class CheckBox extends FieldAbstract implements ArrayValueInterface |
||
10 | { |
||
11 | |||
12 | use CanRenderInlineTrait; |
||
13 | use HasOptionsTrait; |
||
14 | |||
15 | /** |
||
16 | * We end up ignoring this during rendering Checkboxes, see the renderer for info |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | 8 | public function getTag(): string |
|
24 | |||
25 | 11 | public function init(): void |
|
31 | |||
32 | /** |
||
33 | * @param $key |
||
34 | */ |
||
35 | 2 | public function checkValue($key): void |
|
41 | |||
42 | /** |
||
43 | * @param $key |
||
44 | */ |
||
45 | 1 | public function uncheckValue($key): void |
|
57 | } |
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: