Skip to content

Commit 165d541

Browse files
committed
minor #19152 [Form] Deprecate using UrlType without setting default_protocol (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [Form] Deprecate using `UrlType` without setting `default_protocol` Fix #19146 Commits ------- 3280705 [Form] Deprecate using `UrlType` without setting `default_protocol`
2 parents 84ff994 + 3280705 commit 165d541

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)