8000 minor #20520 [Validator] [DateTime] Add ``format`` to error messages … · symfony/symfony-docs@765112c · GitHub
[go: up one dir, main page]

Skip to content

Commit 765112c

Browse files
committed
minor #20520 [Validator] [DateTime] Add format to error messages (mdoutreluingne)
This PR was squashed before being merged into the 7.3 branch. Discussion ---------- [Validator] [DateTime] Add ``format`` to error messages Fixes #20518 Commits ------- 17a46ad [Validator] [DateTime] Add ``format`` to error messages
2 parents 080b71f + 17a46ad commit 765112c

File tree

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