Skip to content

Commit f96db6b

Browse files
authored
Add return types to ElFinderType
Method "Symfony\Component\Form\AbstractType::buildForm()" might add "void" as a native return type declaration in the future. Do the same in child class "FM\ElfinderBundle\Form\Type\ElFinderType" now to avoid errors or add an explicit @return annotation to suppress this message. Method "Symfony\Component\Form\AbstractType::buildView()" might add "void" as a native return type declaration in the future. Do the same in child class "FM\ElfinderBundle\Form\Type\ElFinderType" now to avoid errors or add an explicit @return annotation to suppress this message. Method "Symfony\Component\Form\AbstractType::configureOptions()" might add "void" as a native return type declaration in the future. Do the same in child class "FM\ElfinderBundle\Form\Type\ElFinderType" now to avoid errors or add an explicit @return annotation to suppress this message.
1 parent 19a7578 commit f96db6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Form/Type/ElFinderType.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ElFinderType extends AbstractType
1313
/**
1414
* {@inheritdoc}
1515
*/
16-
public function buildForm(FormBuilderInterface $builder, array $options)
16+
public function buildForm(FormBuilderInterface $builder, array $options): void
1717
{
1818
$builder->setAttribute('enable', $options['enable']);
1919

@@ -26,7 +26,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
2626
/**
2727
* {@inheritdoc}
2828
*/
29-
public function buildView(FormView $view, FormInterface $form, array $options)
29+
public function buildView(FormView $view, FormInterface $form, array $options): void
3030
{
3131
$view->vars['enable'] = $options['enable'];
3232

@@ -39,7 +39,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
3939
/**
4040
* {@inheritdoc}
4141
*/
42-
public function configureOptions(OptionsResolver $resolver)
42+
public function configureOptions(OptionsResolver $resolver): void
4343
{
4444
$resolver
4545
->setDefaults([

0 commit comments

Comments
 (0)