Skip to content

[Validator] ExpressionValidator should use OBJECT_TO_STRING to allow value in message #24595

@Hanmac

Description

@Hanmac
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 3.3.10

ExpressionValidator should use OBJECT_TO_STRING for formatValue,
so i can use {{ value }} inside the message and it isn't replaced with just 'object'

i don't think it's more like a feature request then a pure bug,
so i didn't make a (simple) pull request jet, but wait what you guys think about it.

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