Skip to content

Commit 1915270

Browse files
committed
minor #8130 [Form] Fix maxlength attribute (michaelperrin)
This PR was merged into the 2.7 branch. Discussion ---------- [Form] Fix maxlength attribute Surprisingly, some reminiscence of the very old Symfony `max_length` form option (deprecated since Symfony 2.5!) is still present on the forms documentation page (including for Symfony 3.3), despite #3461 was merged and was already fixing it. These was the only reminiscences, all other pages are up-to-date. Commits ------- f02815e Fix maxlength attribute for forms
2 parents bd74006 + f02815e commit 1915270

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

forms.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,10 @@ the correct values of a number of field options.
568568
field ``nullable``). This is very useful, as your client-side validation will
569569
automatically match your validation rules.
570570

571-
``max_length``
572-
If the field is some sort of text field, then the ``max_length`` option can be
573-
guessed from the validation constraints (if ``Length`` or ``Range`` is used) or
574-
from the Doctrine metadata (via the field's length).
571+
``maxlength``
572+
If the field is some sort of text field, then the ``maxlength`` option attribute
573+
can be guessed from the validation constraints (if ``Length`` or ``Range`` is used)
574+
or from the Doctrine metadata (via the field's length).
575575

576576
.. caution::
577577

0 commit comments

Comments
 (0)