Skip to content

[Validator] Double validation when an interface extends another #19943

@fancyweb

Description

@fancyweb

I have this kind of code :

classes

interface PriceInterface {}
interface VariablePriceInterface extends PriceInterface {}
class ProductPrice implements VariablePriceInterface {}

validation

PriceInterface:
    constraints:
        - MyConstraint: ~

If I validate a ProductPrice object, MyConstraint is checked twice.

This is very similar to #19516.

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