Skip to content

Commit a485b67

Browse files
committed
minor #20250 [Form] Remove legacy message (MrYamous)
This PR was merged into the 7.1 branch. Discussion ---------- [Form] Remove legacy message IIUC what happened with #17478 and [related code PR](symfony/symfony#47598), legacy invalid message refer to something which no longer exists Commits ------- 6516a9b form/remove-legacy-message
2 parents 0a8b7e6 + 6516a9b commit a485b67

33 files changed

+0
-66
lines changed

reference/forms/types/birthday.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ option defaults to 120 years ago to the current year.
1919
+---------------------------+-------------------------------------------------------------------------------+
2020
| Default invalid message | Please enter a valid birthdate. |
2121
+---------------------------+-------------------------------------------------------------------------------+
22-
| Legacy invalid message | The value {{ value }} is not valid. |
23-
+---------------------------+-------------------------------------------------------------------------------+
2422
| Parent type | :doc:`DateType </reference/forms/types/date>` |
2523
+---------------------------+-------------------------------------------------------------------------------+
2624
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BirthdayType` |

reference/forms/types/checkbox.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ if you want to handle submitted values like "0" or "false").
1313
+---------------------------+------------------------------------------------------------------------+
1414
| Default invalid message | The checkbox has an invalid value. |
1515
+---------------------------+------------------------------------------------------------------------+
16-
| Legacy invalid message | The value {{ value }} is not valid. |
17-
+---------------------------+------------------------------------------------------------------------+
1816
| Parent type | :doc:`FormType </reference/forms/types/form>` |
1917
+---------------------------+------------------------------------------------------------------------+
2018
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType` |

reference/forms/types/choice.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op
1111
+---------------------------+----------------------------------------------------------------------+
1212
| Default invalid message | The selected choice is invalid. |
1313
+---------------------------+----------------------------------------------------------------------+
14-
| Legacy invalid message | The value {{ value }} is not valid. |
15-
+---------------------------+----------------------------------------------------------------------+
1614
| Parent type | :doc:`FormType </reference/forms/types/form>` |
1715
+---------------------------+----------------------------------------------------------------------+
1816
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType` |

reference/forms/types/collection.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ that is passed as the collection type field data.
1616
+---------------------------+--------------------------------------------------------------------------+
1717
| Default invalid message | The collection is invalid. |
1818
+---------------------------+--------------------------------------------------------------------------+
19-
| Legacy invalid message | The value {{ value }} is not valid. |
20-
+---------------------------+--------------------------------------------------------------------------+
2119
| Parent type | :doc:`FormType </reference/forms/types/form>` |
2220
+---------------------------+--------------------------------------------------------------------------+
2321
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType` |

reference/forms/types/color.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ element.
1616
+---------------------------+---------------------------------------------------------------------+
1717
| Default invalid message | Please select a valid color. |
1818
+---------------------------+---------------------------------------------------------------------+
19-
| Legacy invalid message | The value {{ value }} is not valid. |
20-
+---------------------------+---------------------------------------------------------------------+
2119
| Parent type | :doc:`TextType </reference/forms/types/text>` |
2220
+---------------------------+---------------------------------------------------------------------+
2321
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ColorType` |

reference/forms/types/country.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
2020
+---------------------------+-----------------------------------------------------------------------+
2121
| Default invalid message | Please select a valid country. |
2222
+---------------------------+-----------------------------------------------------------------------+
23-
| Legacy invalid message | The value {{ value }} is not valid. |
24-
+---------------------------+-----------------------------------------------------------------------+
2523
| Parent type | :doc:`ChoiceType </reference/forms/types/choice>` |
2624
+---------------------------+-----------------------------------------------------------------------+
2725
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CountryType` |

reference/forms/types/currency.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ manually, but then you should just use the ``ChoiceType`` directly.
1313
+---------------------------+------------------------------------------------------------------------+
1414
| Default invalid message | Please select a valid currency. |
1515
+---------------------------+------------------------------------------------------------------------+
16-
| Legacy invalid message | The value {{ value }} is not valid. |
17-
+---------------------------+------------------------------------------------------------------------+
1816
| Parent type | :doc:`ChoiceType </reference/forms/types/choice>` |
1917
+---------------------------+------------------------------------------------------------------------+
2018
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CurrencyType` |

reference/forms/types/date.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ and can understand a number of different input formats via the `input`_ option.
1414
+---------------------------+-----------------------------------------------------------------------------+
1515
| Default invalid message | Please enter a valid date. |
1616
+---------------------------+-----------------------------------------------------------------------------+
17-
| Legacy invalid message | The value {{ value }} is not valid. |
18-
+---------------------------+-----------------------------------------------------------------------------+
1917
| Parent type | :doc:`FormType </reference/forms/types/form>` |
2018
+---------------------------+-----------------------------------------------------------------------------+
2119
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType` |

reference/forms/types/dateinterval.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ or an array (see `input`_).
1616
+---------------------------+----------------------------------------------------------------------------------+
1717
| Default invalid message | Please choose a valid date interval. |
1818
+---------------------------+----------------------------------------------------------------------------------+
19-
| Legacy invalid message | The value {{ value }} is not valid. |
20-
+---------------------------+----------------------------------------------------------------------------------+
2119
| Parent type | :doc:`FormType </reference/forms/types/form>` |
2220
+---------------------------+----------------------------------------------------------------------------------+
2321
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\DateIntervalType` |

reference/forms/types/datetime.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ the data can be a ``DateTime`` object, a string, a timestamp or an array.
1414
+---------------------------+-----------------------------------------------------------------------------+
1515
| Default invalid message | Please enter a valid date and time. |
1616
+---------------------------+-----------------------------------------------------------------------------+
17-
| Legacy invalid message | The value {{ value }} is not valid. |
18-
+---------------------------+-----------------------------------------------------------------------------+
1917
| Parent type | :doc:`FormType </reference/forms/types/form>` |
2018
+---------------------------+-----------------------------------------------------------------------------+
2119
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType` |

reference/forms/types/email.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ The ``EmailType`` field is a text field that is rendered using the HTML5
99
+---------------------------+---------------------------------------------------------------------+
1010
| Default invalid message | Please enter a valid email address. |
1111
+---------------------------+---------------------------------------------------------------------+
12-
| Legacy invalid message | The value {{ value }} is not valid. |
13-
+---------------------------+---------------------------------------------------------------------+
1412
| Parent type | :doc:`TextType </reference/forms/types/text>` |
1513
+---------------------------+---------------------------------------------------------------------+
1614
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType` |

reference/forms/types/enum.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ field and defines the same options.
1010
+---------------------------+----------------------------------------------------------------------+
1111
| Default invalid message | The selected choice is invalid. |
1212
+---------------------------+----------------------------------------------------------------------+
13-
| Legacy invalid message | The value {{ value }} is not valid. |
14-
+---------------------------+----------------------------------------------------------------------+
1513
| Parent type | :doc:`ChoiceType </reference/forms/types/choice>` |
1614
+---------------------------+----------------------------------------------------------------------+
1715
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\EnumType` |

reference/forms/types/file.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ The ``FileType`` represents a file input in your form.
88
+---------------------------+--------------------------------------------------------------------+
99
| Default invalid message | Please select a valid file. |
1010
+---------------------------+--------------------------------------------------------------------+
11-
| Legacy invalid message | The value {{ value }} is not valid. |
12-
+---------------------------+--------------------------------------------------------------------+
1311
| Parent type | :doc:`FormType </reference/forms/types/form>` |
1412
+---------------------------+--------------------------------------------------------------------+
1513
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType` |

reference/forms/types/form.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on all types for which ``FormType`` is the parent.
77
+---------------------------+--------------------------------------------------------------------+
88
| Default invalid message | This value is not valid. |
99
+---------------------------+--------------------------------------------------------------------+
10-
| Legacy invalid message | This value is not valid. |
11-
+---------------------------+--------------------------------------------------------------------+
1210
| Parent | none |
1311
+---------------------------+--------------------------------------------------------------------+
1412
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType` |

reference/forms/types/hidden.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ The hidden type represents a hidden input field.
88
+---------------------------+----------------------------------------------------------------------+
99
| Default invalid message | The hidden field is invalid. |
1010
+---------------------------+----------------------------------------------------------------------+
11-
| Legacy invalid message | The value {{ value }} is not valid. |
12-
+---------------------------+----------------------------------------------------------------------+
1311
| Parent type | :doc:`FormType </reference/forms/types/form>` |
1412
+---------------------------+----------------------------------------------------------------------+
1513
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\HiddenType` |

reference/forms/types/integer.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ integers. By default, all non-integer values (e.g. 6.78) will round down
1515
+---------------------------+-----------------------------------------------------------------------+
1616
| Default invalid message | Please enter an integer. |
1717
+---------------------------+-----------------------------------------------------------------------+
18-
| Legacy invalid message | The value {{ value }} is not valid. |
19-
+---------------------------+-----------------------------------------------------------------------+
2018
| Parent type | :doc:`FormType </reference/forms/types/form>` |
2119
+---------------------------+-----------------------------------------------------------------------+
2220
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType` |

reference/forms/types/language.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ manually, but then you should just use the ``ChoiceType`` directly.
2222
+---------------------------+------------------------------------------------------------------------+
2323
| Default invalid message | Please select a valid language. |
2424
+---------------------------+------------------------------------------------------------------------+
25-
| Legacy invalid message | The value {{ value }} is not valid. |
26-
+---------------------------+------------------------------------------------------------------------+
2725
| Parent type | :doc:`ChoiceType </reference/forms/types/choice>` |
2826
+---------------------------+------------------------------------------------------------------------+
2927
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType` |

reference/forms/types/locale.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ manually, but then you should just use the ``ChoiceType`` directly.
2323
+---------------------------+----------------------------------------------------------------------+
2424
| Default invalid message | Please select a valid locale. |
2525
+---------------------------+----------------------------------------------------------------------+
26-
| Legacy invalid message | The value {{ value }} is not valid. |
27-
+---------------------------+----------------------------------------------------------------------+
2826
| Parent type | :doc:`ChoiceType </reference/forms/types/choice>` |
2927
+---------------------------+----------------------------------------------------------------------+
3028
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\LocaleType` |

reference/forms/types/money.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ how the input and output of the data is handled.
1313
+---------------------------+---------------------------------------------------------------------+
1414
| Default invalid message | Please enter a valid money amount. |
1515
+---------------------------+---------------------------------------------------------------------+
16-
| Legacy invalid message | The value {{ value }} is not valid. |
17-
+---------------------------+---------------------------------------------------------------------+
1816
| Parent type | :doc:`FormType </reference/forms/types/form>` |
1917
+---------------------------+---------------------------------------------------------------------+
2018
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType` |

reference/forms/types/number.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ that you want to use for your number.
1010
+---------------------------+----------------------------------------------------------------------+
1111
| Default invalid message | Please enter a number. |
1212
+---------------------------+----------------------------------------------------------------------+
13-
| Legacy invalid message | The value {{ value }} is not valid. |
14-
+---------------------------+----------------------------------------------------------------------+
1513
| Parent type | :doc:`FormType </reference/forms/types/form>` |
1614
+---------------------------+----------------------------------------------------------------------+
1715
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType` |

reference/forms/types/password.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ The ``PasswordType`` field renders an input password text box.
88
+---------------------------+------------------------------------------------------------------------+
99
| Default invalid message | The password is invalid. |
1010
+---------------------------+------------------------------------------------------------------------+
11-
| Legacy invalid message | The value {{ value }} is not valid. |
12-
+---------------------------+------------------------------------------------------------------------+
1311
| Parent type | :doc:`TextType </reference/forms/types/text>` |
1412
+---------------------------+------------------------------------------------------------------------+
1513
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType` |

reference/forms/types/percent.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ the input.
1414
+---------------------------+-----------------------------------------------------------------------+
1515
| Default invalid message | Please enter a percentage value. |
1616
+---------------------------+-----------------------------------------------------------------------+
17-
| Legacy invalid message | The value {{ value }} is not valid. |
18-
+---------------------------+-----------------------------------------------------------------------+
1917
| Parent type | :doc:`FormType </reference/forms/types/form>` |
2018
+---------------------------+-----------------------------------------------------------------------+
2119
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\PercentType` |

0 commit comments

Comments
 (0)