File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ Options
109
109
110
110
.. include :: /reference/constraints/_groups-option.rst.inc
111
111
112
- `` message ``
113
- ~~~~~~~~~~~
112
+ message
113
+ ~~~~~~~
114
114
115
115
**type **: ``string `` **default **: ``This collection should contain only unique elements. ``
116
116
@@ -130,13 +130,17 @@ Parameter Description
130
130
131
131
**type **: a `PHP callable `_ **default **: ``null ``
132
132
133
+ .. versionadded :: 5.3
134
+
135
+ The ``normalizer `` option was introduced in Symfony 5.3.
136
+
133
137
This option allows to define the PHP callable applied to each element of the given collection before
134
138
checking if the collection is valid.
135
139
136
140
For example, you may want to pass the ``'trim' `` string to apply the
137
141
:phpfunction: `trim ` PHP function to each element of the collection in order to ignore leading and trailing
138
142
whitespace during validation.
139
143
140
- .. _`PHP callable` : https://www.php.net/callable
141
-
142
144
.. include :: /reference/constraints/_payload-option.rst.inc
145
+
146
+ .. _`PHP callable` : https://www.php.net/callable
You can’t perform that action at this time.
0 commit comments