8000 [Validator] Update "trim" option in the NotBlank constraint page · symfony/symfony-docs@568fb96 · GitHub
[go: up one dir, main page]

Skip to content

Commit 568fb96

Browse files
committed
[Validator] Update "trim" option in the NotBlank constraint page
1 parent 27d13b3 commit 568fb96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/constraints/NotBlank.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ This is the message that will be shown if the value is blank.
9797
trim
9898
~~~~
9999

100-
**type**: ``boolean`` **default**: ``null``
100+
**type**: ``boolean`` **d 5E02 efault**: ``false``
101101

102-
If ``true`` and if the given value is a ``string``, every kind of whitespace will be
103-
ignored while checking if it is not blank.
102+
If ``true`` and if the given value is a ``string``, then the :phpfunction:`trim`
103+
PHP function will be used in order to ignore leading and trailing whitespace
104+
characters while checking if it is valid.
104105

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

0 commit comments

Comments
 (0)
0