]> Raphaël G. Git Repositories - userbundle/blobdiff - Form/LoginType.php
Add strict
[userbundle] / Form / LoginType.php
index 66afbca228ad4bc941e9a99441635a3b71ac6bf7..b58b44699c45418b1bd198ed04d45fbe523ed748 100644 (file)
@@ -1,4 +1,13 @@
-<?php
+<?php declare(strict_types=1);
+
+/*
+ * This file is part of the Rapsys PackBundle package.
+ *
+ * (c) Raphaël Gertz <symfony@rapsys.eu>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
 
 namespace Rapsys\UserBundle\Form;
 
@@ -16,7 +25,7 @@ class LoginType extends AbstractType {
        /**
         * {@inheritdoc}
         */
-       public function buildForm(FormBuilderInterface $builder, array $options) {
+       public function buildForm(FormBuilderInterface $builder, array $options): FormBuilderInterface {
                //Create form
                $form = $builder;
 
@@ -46,7 +55,7 @@ class LoginType extends AbstractType {
        /**
         * {@inheritdoc}
         */
-       public function configureOptions(OptionsResolver $resolver) {
+       public function configureOptions(OptionsResolver $resolver): void {
                //Set defaults
                $resolver->setDefaults(['error_bubbling' => true, 'mail' => true, 'password' => true, 'password_repeated' => true]);
 
@@ -63,7 +72,7 @@ class LoginType extends AbstractType {
        /**
         * {@inheritdoc}
         */
-       public function getName() {
+       public function getName(): string {
                return 'rapsys_user_login';
        }
 }