Skip to content

Expression validator is totally not funcion because of changes in Symfony\Component\Validator\ContainerConstraintValidatorFactory #49917

@zalesak

Description

@zalesak

Symfony version(s) affected

6.2.8

Description

When you use ExpressionValidator, exception "Constraint validator "validator.expression" does not exist or is not enabled. Check the "validatedBy" method in your constraint class "Symfony\Component\Validator\Constraints\Expression". is throw.

How to reproduce

Just use ExpressionValidator

Possible Solution

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

from Symfony\Component\Validator\Constraints\Expression

Additional Context

No response

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