File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 44Validates that all the elements of the given collection are unique (none of them
55is present more than once). By default elements are compared strictly,
66so ``'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.
88
99.. seealso ::
1010
@@ -134,12 +134,12 @@ Parameter Description
134134
135135 The ``normalizer `` option was introduced in Symfony 5.3.
136136
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.
139139
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.
143143
144144.. include :: /reference/constraints/_payload-option.rst.inc
145145
You can’t perform that action at this time.
0 commit comments