1 | <?php |
||
13 | class TermsAndConditionsField extends CheckboxField |
||
14 | { |
||
15 | protected $fieldHolderTemplate = 'TermsAndConditionsField_holder'; |
||
16 | |||
17 | /** |
||
18 | * @var \Page |
||
19 | */ |
||
20 | protected $termsPage; |
||
21 | |||
22 | public function __construct($name) |
||
33 | |||
34 | public function getCustomValidationMessage() |
||
38 | |||
39 | /** |
||
40 | * If a therms page is set render the checkbox |
||
41 | * |
||
42 | * @param array $properties |
||
43 | * |
||
44 | * @return null|string |
||
45 | */ |
||
46 | public function FieldHolder($properties = array()) { |
||
53 | } |
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: