1 | <?php |
||
22 | class ChoiceFieldMaskType extends AbstractType |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function buildView(FormView $view, FormInterface $form, array $options): void |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | * |
||
45 | * @todo Remove when Symfony <2.8 is no longer supported |
||
46 | */ |
||
47 | public function setDefaultOptions(OptionsResolverInterface $resolver): void |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function configureOptions(OptionsResolver $resolver): void |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getParent() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | * |
||
73 | * @todo Remove when Symfony <2.8 is no longer supported |
||
74 | */ |
||
75 | public function getName() |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function getBlockPrefix() |
||
87 | } |
||
88 |
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: