]> Raphaël G. Git Repositories - airbundle/commitdiff
Strict types
authorRaphaël Gertz <git@rapsys.eu>
Wed, 31 Jan 2024 21:54:21 +0000 (22:54 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 31 Jan 2024 21:54:21 +0000 (22:54 +0100)
Form/ContactType.php

index 8e5946e8138ef99de557c13f66894df33466b860..bb0ee77053a1c3a36cb495da326d78f6306e4f6f 100644 (file)
@@ -17,7 +17,7 @@ class ContactType extends CaptchaType {
        /**
         * {@inheritdoc}
         */
-       public function buildForm(FormBuilderInterface $builder, array $options) {
+       public function buildForm(FormBuilderInterface $builder, array $options): void {
                //Add fields
                $builder
                        ->add('name', TextType::class, ['attr' => ['placeholder' => 'Your name'], 'constraints' => [new NotBlank(['message' => 'Please provide your name'])]])