Skip to content

Commit 126b105

Browse files
committed
minor #14967 [Validator] Change Range and Legth description formatting (wkania)
This PR was merged into the 4.4 branch. Discussion ---------- [Validator] Change Range and Legth description formatting Range and Length description formatting should be consistent with other constraints. [NotNull](https://symfony.com/doc/current/reference/constraints/NotNull.html#basic-usage), [ExpressionLanguageSyntax](https://symfony.com/doc/current/reference/constraints/ExpressionLanguageSyntax.html#basic-usage), [Length](https://symfony.com/doc/4.4/reference/constraints/Length.html) use other formatting to format property. Formatting with _""_ is used for the name of methods: [getters](https://symfony.com/doc/current/validation.html#getters), [isFalse](https://symfony.com/doc/current/reference/constraints/IsFalse.html#basic-usage), values do not use them. Commits ------- 2cb0c9e [Validator] Change Range and Legth description formatting
2 parents e73f978 + 2cb0c9e commit 126b105

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

reference/constraints/Length.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Validator :class:`Symfony\\Component\\Validator\\Constraints\\LengthValidator`
2323
Basic Usage
2424
-----------
2525

26-
To verify that the ``firstName`` field length of a class is between "2"
27-
and "50", you might add the following:
26+
To verify that the ``firstName`` field length of a class is between ``2``
27+
and ``50``, you might add the following:
2828

2929
.. configuration-block::
3030

reference/constraints/Range.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Validator :class:`Symfony\\Component\\Validator\\Constraints\\RangeValidator`
2222
Basic Usage
2323
-----------
2424

25-
To verify that the "height" field of a class is between "120" and "180",
25+
To verify that the ``height`` field of a class is between ``120`` and ``180``,
2626
you might add the following:
2727

2828
.. configuration-block::

0 commit comments

Comments
 (0)