Skip to content

Commit

Permalink
Add return types to ElFinderType (#519)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jontjs authored Nov 18, 2023
1 parent 71d0268 commit 11f7c3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Form/Type/ElFinderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ElFinderType extends AbstractType
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder->setAttribute('enable', $options['enable']);

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

Expand All @@ -39,7 +39,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
public function configureOptions(OptionsResolver $resolver): void
{
$resolver
->setDefaults([
Expand Down

0 comments on commit 11f7c3b

Please sign in to comment.