Skip to content

Commit 3280705

Browse files
[Form] Deprecate using UrlType without setting default_protocol
1 parent d052a00 commit 3280705

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/forms/types/url.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ If a value is submitted that doesn't begin with some protocol (e.g. ``http://``,
3131
``ftp://``, etc), this protocol will be prepended to the string when
3232
the data is submitted to the form.
3333

34+
.. deprecated:: 7.1
35+
36+
Not setting the ``default_protocol`` option is deprecated since Symfony 7.1
37+
and will default to ``null`` in Symfony 8.0.
38+
3439
Overridden Options
3540
------------------
3641

0 commit comments

Comments
 (0)