Skip to content

Commit 694ce5c

Browse files
committed
[#1732] Minor tweaks to numeric node new docs
1 parent 357dc35 commit 694ce5c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

components/config/definition.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,18 @@ node definition. Node type are available for:
106106
* variable (no validation)
107107

108108
and are created with ``node($name, $type)`` or their associated shortcut
109-
``xxxxNode($name)`` method.
109+
``xxxxNode($name)`` method.
110110

111111
Numeric node constraints
112112
~~~~~~~~~~~~~~~~~~~~~~~~
113113

114114
.. versionadded:: 2.2
115-
116115
The numeric (float and integer) nodes are new in 2.2
117116

118-
Numeric node (float and integer) provide two extra constraints min() and
119-
max() allowing to validate the value:
120-
121-
.. code-block:: php
117+
Numeric nodes (float and integer) provide two extra constraints -
118+
:method:`Symfony\\Component\\Config\\Definition\\Builder::min` and
119+
:method:`Symfony\\Component\\Config\\Definition\\Builder::max` -
120+
allowing to validate the value::
122121

123122
$rootNode
124123
->children()

0 commit comments

Comments
 (0)