8000 [Validator] [DateTime] Add ``format`` to error messages · symfony/symfony-docs@17a46ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 17a46ad

Browse files
mdoutreluingnejaviereguiluz
authored andcommitted
[Validator] [DateTime] Add format to error messages
1 parent 9d4972d commit 17a46ad

File tree

8000

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

reference/constraints/DateTime.rst

+11-6
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,16 @@ This message is shown if the underlying data is not a valid datetime.
9999

100100
You can use the following parameters in this message:
101101

102-
=============== ==============================================================
103-
Parameter Description
104-
=============== ==============================================================
105-
``{{ value }}`` The current (invalid) value
106-
``{{ label }}`` Corresponding form field label
107-
=============== ==============================================================
102+
================ ==============================================================
103+
Parameter Description
104+
================ ==============================================================
105+
``{{ value }}`` The current (invalid) value
106+
``{{ label }}`` Corresponding form field label
107+
``{{ format }}`` The date format defined in ``format``
108+
================ ==============================================================
109+
110+
.. versionadded:: 7.3
111+
112+
The ``{{ format }}`` parameter was introduced in Symfony 7.3.
108113

109114
.. include:: /reference/constraints/_payload-option.rst.inc

0 commit comments

Comments
 (0)
0