File tree 1 file changed +6
-6
lines changed
Filter options
1 file changed +6
-6
lines changed
Original file line number Diff line number Diff line change 4
4
Validates that all the elements of the given collection are unique (none of them
5
5
is present more than once). By default elements are compared strictly,
6
6
so ``'7' `` and ``7 `` are considered different elements (a string and an integer, respectively).
7
- If you want any other comparison logic to be applied , use the `normalizer `_ option.
7
+ If you want to apply any other comparison logic, use the `normalizer `_ option.
8
8
9
9
.. seealso ::
10
10
@@ -134,12 +134,12 @@ Parameter Description
134
134
135
135
The ``normalizer `` option was introduced in Symfony 5.3.
136
136
137
- This option allows to define the PHP callable applied to each element of the given collection before
138
- checking if the collection is valid.
137
+ This option defined the PHP callable applied to each element of the given
138
+ collection before checking if the collection is valid.
139
139
140
- For example, you may want to pass the ``'trim' `` string to apply the
141
- :phpfunction: ` trim ` PHP function to each element of the collection in order to ignore leading and trailing
142
- whitespace during validation.
140
+ For example, you can pass the ``'trim' `` string to apply the :phpfunction: ` trim `
141
+ PHP function to each element of the collection in order to ignore leading and
142
+ trailing whitespace during validation.
143
143
144
144
.. include :: /reference/constraints/_payload-option.rst.inc
145
145
You can’t perform that action at this time.
0 commit comments