Skip to content

Commit 9a1af3d

Browse files
committed
[Form] Change UrlType default protocol
1 parent 1d9f907 commit 9a1af3d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

reference/forms/types/url.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Field Options
2323
``default_protocol``
2424
~~~~~~~~~~~~~~~~~~~~
2525

26-
**type**: ``string`` **default**: ``http``
26+
**type**: ``string`` **default**: ``null``
2727

2828
Set this value to ``null`` to render the field using a ``<input type="url"/>``,
2929
allowing the browser to perform local validation before submission.
@@ -36,11 +36,6 @@ If a value is submitted that doesn't begin with some protocol (e.g. ``http://``,
3636
``ftp://``, etc), this protocol will be prepended to the string when
3737
the data is submitted to the form.
3838

39-
.. deprecated:: 7.1
40-
41-
Not setting the ``default_protocol`` option is deprecated since Symfony 7.1
42-
and will default to ``null`` in Symfony 8.0.
43-
4439
Overridden Options
4540
------------------
4641

0 commit comments

Comments
 (0)