Skip to content

Commit 7cda9c0

Browse files
committed
minor #20005 [Validator] Update Url for changing the default value of the requireTld option (MrYamous)
This PR was merged into the 7.1 branch. Discussion ---------- [Validator] Update Url for changing the default value of the requireTld option I find it weird to indicate depreciation in the same version as the introduction of this option but I did not have other idea. WDYT? Related to symfony/symfony#54588 Commits ------- 4add5c3 update Url constraint
2 parents 2abe33e + 4add5c3 commit 7cda9c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/constraints/Url.rst

Lines changed: 5 additions & 0 deletions
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 ``requireTld`` 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)