Skip to content

Invalid validator.expression registration #49886

@Rafikooo

Description

@Rafikooo

Symfony version(s) affected

6.2.8

Description

The way validator.expression is registered has changed, which causes ValidatorException when Expression constraint is used:
symfony/framework-bundle@v6.2.7...v6.2.8#diff-51cca25b9f344e04d253bf67d646ddaf82a361541effdf554dce3f6d2080dc66R76-R78

How to reproduce

  1. Create an Expression constraint in the app
  2. Perform an action to run validation logic
  3. Exception is thrown

Possible Solution

Remove this method:

public function validatedBy(): string
{
return 'validator.expression';
}

Additional Context

image

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