Skip to content

Commit 81fdea1

Browse files
raziel057wouterj
authored andcommitted
Trim default is false in password field
1 parent 6b66f03 commit 81fdea1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

reference/forms/types/options/trim.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ trim
44
**type**: ``Boolean`` **default**: ``true``
55

66
If true, the whitespace of the submitted string value will be stripped
7-
via the ``trim()`` function when the data is bound. This guarantees that
7+
via the :phpfunction:`trim` function when the data is bound. This guarantees that
88
if a value is submitted with extra whitespace, it will be removed before
99
the value is merged back onto the underlying object.

reference/forms/types/password.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,12 @@ The default value is ``''`` (the empty string).
7676

7777
.. include:: /reference/forms/types/options/required.rst.inc
7878

79-
.. include:: /reference/forms/types/options/trim.rst.inc
79+
trim
80+
~~~~
81+
82+
**type**: ``Boolean`` **default**: ``false``
83+
84+
If true, the whitespace of the submitted string value will be stripped
85+
via the :phpfunction:`trim` function when the data is bound. This guarantees that
86+
if a value is submitted with extra whitespace, it will be removed before
87+
the value is merged back onto the underlying object.

0 commit comments

Comments
 (0)