From f96db6bafb19aa195b17d5a9159519eb9aeb0a90 Mon Sep 17 00:00:00 2001 From: Jon Green Date: Thu, 16 Nov 2023 14:41:58 +0000 Subject: [PATCH] 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. --- src/Form/Type/ElFinderType.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Form/Type/ElFinderType.php b/src/Form/Type/ElFinderType.php index 6714646..2ab55f9 100644 --- a/src/Form/Type/ElFinderType.php +++ b/src/Form/Type/ElFinderType.php @@ -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']); @@ -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']; @@ -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([