]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Form/ContactType.php
Fix header comment
[airbundle] / Form / ContactType.php
index 8e5946e8138ef99de557c13f66894df33466b860..adee52527b474972db00daf6d5f52d4bbffb6d9e 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'])]])
@@ -33,7 +33,7 @@ class ContactType extends CaptchaType {
        /**
         * {@inheritdoc}
         */
-       public function configureOptions(OptionsResolver $resolver) {
+       public function configureOptions(OptionsResolver $resolver): void {
                //Set defaults
                $resolver->setDefaults(['error_bubbling' => true]);
        }
@@ -41,7 +41,7 @@ class ContactType extends CaptchaType {
        /**
         * {@inheritdoc}
         */
-       public function getName() {
+       public function getName(): string {
                return 'contact_form';
        }
 }