Skip to content

make:registration-form form class has invalid phpcs #339

@weaverryan

Description

@weaverryan

The new make:registration-form generates a little bit of invalid PHPcs in the form class. It's not caught (for some reason) by our phpcs-fixer, which we run on the classes (not sure why). We should fix that and the bad phpcs.

See the last line for the bad phpcs:

        $builder
            ->add('email')
            ->add('plainPassword', PasswordType::class, [
                // instead of being set onto the object directly,
                // this is read and encoded in the controller
                'mapped' => false,
                'constraints' => [
                    new NotBlank([
                        'message' => 'Please enter a password',
                    ]),
                    new Length([
                        'min' => 6,
                        'minMessage' => 'Your password should be at least {{ limit }} characters',
                    ]),
                ],            ])
        ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions