1 | <?php |
||
17 | class Input extends Div implements RendererInterface |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var string The template file to use in the rendering |
||
22 | */ |
||
23 | public $template = 'form-inputs/text.twig'; |
||
24 | |||
25 | /** |
||
26 | * Render the HTML element in the provided context |
||
27 | * |
||
28 | * @param array $context |
||
29 | * |
||
30 | * @return string The HTML string output |
||
31 | */ |
||
32 | 8 | public function render($context = []) |
|
44 | } |
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: