From 24f1adfefc00bc743aa1512cde527f1dcc6d0059 Mon Sep 17 00:00:00 2001 From: Matthias-Kelvin Daous Date: Fri, 12 Sep 2025 14:34:50 +0200 Subject: [PATCH] add void return type for AbstractType compatibility --- src/Form/Type/CustomUrlType.php | 2 +- src/Form/Type/LinkBlockType.php | 4 ++-- src/Form/Type/TranslateCustomUrlType.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Form/Type/CustomUrlType.php b/src/Form/Type/CustomUrlType.php index 0e44f5e5..3e2ed05a 100644 --- a/src/Form/Type/CustomUrlType.php +++ b/src/Form/Type/CustomUrlType.php @@ -30,7 +30,7 @@ class CustomUrlType extends TranslatorAwareType /** * {@inheritdoc} */ - public function buildForm(FormBuilderInterface $builder, array $options) + public function buildForm(FormBuilderInterface $builder, array $options): void { $builder ->add('title', TextType::class, [ diff --git a/src/Form/Type/LinkBlockType.php b/src/Form/Type/LinkBlockType.php index 6b40ef30..9adf9cd3 100644 --- a/src/Form/Type/LinkBlockType.php +++ b/src/Form/Type/LinkBlockType.php @@ -104,7 +104,7 @@ public function __construct( /** * {@inheritdoc} */ - public function buildForm(FormBuilderInterface $builder, array $options) + public function buildForm(FormBuilderInterface $builder, array $options): void { $builder ->add('id_link_block', HiddenType::class) @@ -197,7 +197,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) /** * {@inheritdoc} */ - public function configureOptions(OptionsResolver $resolver) + public function configureOptions(OptionsResolver $resolver): void { $resolver->setDefaults([ 'label' => false, diff --git a/src/Form/Type/TranslateCustomUrlType.php b/src/Form/Type/TranslateCustomUrlType.php index d7fe163c..94bfb27c 100644 --- a/src/Form/Type/TranslateCustomUrlType.php +++ b/src/Form/Type/TranslateCustomUrlType.php @@ -31,7 +31,7 @@ class TranslateCustomUrlType extends TranslatableType /** * {@inheritdoc} */ - public function buildForm(FormBuilderInterface $builder, array $options) + public function buildForm(FormBuilderInterface $builder, array $options): void { foreach ($options['locales'] as $locale) { $localeOptions = $options['options'];