1 | <?php |
||
22 | class TreeManagerType extends AbstractType |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function buildView(FormView $view, FormInterface $form, array $options): void |
||
28 | { |
||
29 | $view->vars['root'] = $options['root']; |
||
30 | //$view->vars['create_in_overlay'] = $options['create_in_overlay']; |
||
31 | //$view->vars['edit_in_overlay'] = $options['edit_in_overlay']; |
||
32 | //$view->vars['delete_in_overlay'] = $options['delete_in_overlay']; |
||
33 | parent::buildView($view, $form, $options); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * NEXT_MAJOR: remove this method. |
||
38 | */ |
||
39 | public function setDefaultOptions(OptionsResolverInterface $resolver): void |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function configureOptions(OptionsResolver $resolver): void |
||
60 | |||
61 | /** |
||
62 | * NEXT_MAJOR: remove this method. |
||
63 | */ |
||
64 | public function getName() |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function getBlockPrefix() |
||
76 | } |
||
77 |
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: