Skip to content

The options "minStrength" must be set for constraint #60

@RootProgger

Description

@RootProgger
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony 5.4.0-Beta1
PHP 8.0
Validator latest

I use the Validator per PHP8 Attributes:

#[RollerworksPassword\PasswordStrength(minLength: 6, minStrength: 3)]
private string $plainPassword;

When i open the register-form, following exception occurs:

The options "minStrength" must be set for constraint "Rollerworks\Component\PasswordStrength\Validator\Constraints\PasswordStrength".

PHPStorm says:
Named arguments order does not match parameters order
When i change the Param order the same error is shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions