| 1 | <?php |
||
| 9 | class UserEmailField extends Broarm\EventTickets\UserField |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var FormField |
||
| 13 | */ |
||
| 14 | protected $fieldType = 'EmailField'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a default text field |
||
| 18 | * |
||
| 19 | * @param string $fieldName |
||
| 20 | * @param null $defaultValue |
||
| 21 | * @param boolean $main check if the field is for the main attendee |
||
| 22 | * |
||
| 23 | * @return NumericField|FormField |
||
| 24 | */ |
||
| 25 | public function createField($fieldName, $defaultValue = null, $main = false) |
||
| 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: