Skip to content

Commit 4add5c3

Browse files
authored
update Url constraint
1 parent bd1af26 commit 4add5c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/constraints/Url.rst

+5
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ also relative URLs that contain no protocol (e.g. ``//example.com``).
317317

318318
The ``requiredTld`` option was introduced in Symfony 7.1.
319319

320+
.. deprecated:: 7.1
321+
322+
Not setting the ``requireTld`` option is deprecated since Symfony 7.1
323+
and will default to ``true`` in Symfony 8.0.
324+
320325
By default, URLs like ``https://aaa`` or ``https://foobar`` are considered valid
321326
because they are tecnically correct according to the `URL spec`_. If you set this option
322327
to ``true``, the host part of the URL will have to include a TLD (top-level domain

0 commit comments

Comments
 (0)