8000 [Form][Validator] LengthValidator · Issue #11083 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Form][Validator] LengthValidator #11083
Closed
@rpg600

Description

@rpg600

Hi, i don't know if this is a bug or a desired behavior but the LengthValidator doesn't validate the value if it's null, so there will be no error if the minimum length is 1 and we are forced to add a NotBlank constraint.

Perhaps we can simply set an empty string if the value is null ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0