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 9d34ea0

Browse filesBrowse files
committed
Minor reword
1 parent 6ddba55 commit 9d34ea0
Copy full SHA for 9d34ea0

File tree

8 files changed

+15
-15
lines changed
Filter options

8 files changed

+15
-15
lines changed

‎reference/constraints/Email.rst

Copy file name to clipboardExpand all lines: reference/constraints/Email.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ html5
169169
This matches the pattern used for the `HTML5 email input element`_.
170170

171171
.. include:: /reference/constraints/_normalizer-option.rst.inc
172+
172173
.. include:: /reference/constraints/_payload-option.rst.inc
173174

174175
.. _egulias/email-validator: https://packagist.org/packages/egulias/email-validator

‎reference/constraints/Ip.rst

Copy file name to clipboardExpand all lines: reference/constraints/Ip.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Parameter Description
9898
=============== ==============================================================
9999

100100
.. include:: /reference/constraints/_normalizer-option.rst.inc
101+
101102
.. include:: /reference/constraints/_payload-option.rst.inc
102103

103104
version

‎reference/constraints/Length.rst

Copy file name to clipboardExpand all lines: reference/constraints/Length.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,5 @@ Parameter Description
214214
================= ============================================================
215215

216216
.. include:: /reference/constraints/_normalizer-option.rst.inc
217+
217218
.. include:: /reference/constraints/_payload-option.rst.inc

‎reference/constraints/NotBlank.rst

Copy file name to clipboardExpand all lines: reference/constraints/NotBlank.rst
+1-10Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ Parameter Description
111111
``{{ value }}`` The current (invalid) value
112112
=============== ==============================================================
113113

114-
normalizer
115-
~~~~~~~~~~
116-
117-
**type**: ``string`` **default**: ``null``
118-
119-
If the given value is a ``string``, this option can be used to normalize it while
120-
checking if it is valid. A ``callable`` must be passed.
121-
122-
For example, you may want to use :phpfunction:`trim` to ignore leading and
123-
trailing whitespace during validation.
114+
.. include:: /reference/constraints/_normalizer-option.rst.inc
124115

125116
.. include:: /reference/constraints/_payload-option.rst.inc

‎reference/constraints/Regex.rst

Copy file name to clipboardExpand all lines: reference/constraints/Regex.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,5 @@ PHP function). However, if `match`_ is set to false, then validation will
289289
fail if the input string *does* match this pattern.
290290

291291
.. include:: /reference/constraints/_normalizer-option.rst.inc
292+
292293
.. include:: /reference/constraints/_payload-option.rst.inc

‎reference/constraints/Url.rst

Copy file name to clipboardExpand all lines: reference/constraints/Url.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ Parameter Description
321321
}
322322
323323
.. include:: /reference/constraints/_normalizer-option.rst.inc
324+
324325
.. include:: /reference/constraints/_payload-option.rst.inc
325326

326327
protocols

‎reference/constraints/Uuid.rst

Copy file name to clipboardExpand all lines: reference/constraints/Uuid.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Parameter Description
100100
=============== ==============================================================
101101

102102
.. include:: /reference/constraints/_normalizer-option.rst.inc
103+
103104
.. include:: /reference/constraints/_payload-option.rst.inc
104105

105106
strict
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
normalizer
22
~~~~~~~~~~
33

4-
**type**: ``string`` **default**: ``null``
4+
**type**: a `PHP callable`_ **default**: ``null``
55

6-
This option allows a ``callable`` to be passed in order to normalize the given
7-
value while checking if it is valid.
6+
This option allows to define the PHP callable applied to the given value before
7+
checking if it is valid.
88

9-
For example, you may want to use :phpfunction:`trim` to ignore leading and
10-
trailing whitespace during validation.
9+
For example, you may want to pass the ``'trim'`` string to apply the
10+
:phpfunction:`trim` PHP function in order to ignore leading and trailing
11+
whitespace during validation.
12+
13+
.. _`PHP callable`: https://www.php.net/callable

0 commit comments

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