From 4add5c3a84584eca7fedf90addd32861fef651e7 Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Sun, 30 Jun 2024 17:11:46 +0200 Subject: [PATCH] update Url constraint --- reference/constraints/Url.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference/constraints/Url.rst b/reference/constraints/Url.rst index b3a46d5aec4..6e93a284aa7 100644 --- a/reference/constraints/Url.rst +++ b/reference/constraints/Url.rst @@ -317,6 +317,11 @@ also relative URLs that contain no protocol (e.g. ``//example.com``). The ``requiredTld`` option was introduced in Symfony 7.1. +.. deprecated:: 7.1 + + Not setting the ``requireTld`` option is deprecated since Symfony 7.1 + and will default to ``true`` in Symfony 8.0. + By default, URLs like ``https://aaa`` or ``https://foobar`` are considered valid because they are tecnically correct according to the `URL spec`_. If you set this option to ``true``, the host part of the URL will have to include a TLD (top-level domain