Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3862669

Browse filesBrowse files
committed
Minor tweaks
1 parent b4d93f3 commit 3862669
Copy full SHA for 3862669

File tree

1 file changed

+6
-6
lines changed
Filter options

1 file changed

+6
-6
lines changed

‎reference/constraints/Unique.rst

Copy file name to clipboardExpand all lines: reference/constraints/Unique.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Unique
44
Validates that all the elements of the given collection are unique (none of them
55
is present more than once). By default elements are compared strictly,
66
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.
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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.