1 | <?php |
||
5 | class FieldText extends Abstract_\FormFieldInput { |
||
6 | |||
7 | public function getInputType() { |
||
10 | |||
11 | /** |
||
12 | * |
||
13 | * @param string $placeholder |
||
14 | */ |
||
15 | public function setPlaceholder($placeholder) { |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | * @param boolean $allow |
||
22 | */ |
||
23 | public function setAllowMultiple($allow = true) { |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | * @param boolean $required |
||
30 | */ |
||
31 | public function setRequired($required = true) { |
||
36 | |||
37 | public function setPattern($pattern, $message = null) { |
||
43 | |||
44 | } |
||
45 |
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: