From 3a66610cd5e40ffdc0fec583d7b3bf139d254f3c Mon Sep 17 00:00:00 2001 From: Mark Pedron Date: Mon, 17 Jan 2022 07:25:01 +0100 Subject: [PATCH] Remove outdated versionadded 5.* directives For version 6.0, no versionadded <6.0 are allowed. --- configuration.rst | 5 ----- http_client.rst | 4 ---- serializer.rst | 5 ----- service_container.rst | 4 ---- 4 files changed, 18 deletions(-) diff --git a/configuration.rst b/configuration.rst index 90c3b7047e6..b0d87eea3d8 100644 --- a/configuration.rst +++ b/configuration.rst @@ -412,11 +412,6 @@ files directly in the ``config/packages/`` directory. .. tip:: - .. versionadded:: 5.3 - - The ability to defined different environments in a single file was - introduced in Symfony 5.3. - You can also define options for different environments in a single configuration file using the special ``when`` keyword: diff --git a/http_client.rst b/http_client.rst index 0b68740e398..332e2ccd6e3 100644 --- a/http_client.rst +++ b/http_client.rst @@ -1688,10 +1688,6 @@ responses dynamically when it's called:: $client = new MockHttpClient(); $client->setResponseFactory($responses); - .. versionadded:: 5.4 - - The ``setResponseFactory()`` method was introduced in Symfony 5.4. - If you need to test responses with HTTP status codes different than 200, define the ``http_code`` option:: diff --git a/serializer.rst b/serializer.rst index 296d2c7626a..ef4a8e483df 100644 --- a/serializer.rst +++ b/serializer.rst @@ -149,11 +149,6 @@ configuration: ; }; -.. versionadded:: 5.4 - - The ability to configure the ``default_context`` option in the - Serializer was introduced in Symfony 5.4. - .. _serializer-using-serialization-groups-annotations: Using Serialization Groups Annotations diff --git a/service_container.rst b/service_container.rst index 5af42e690c0..62b18134845 100644 --- a/service_container.rst +++ b/service_container.rst @@ -225,10 +225,6 @@ each time you ask for it. Limiting Services to a specific Symfony Environment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 5.3 - - The ``#[When]`` attribute was introduced in Symfony 5.3. - If you are using PHP 8.0 or later, you can use the ``#[When]`` PHP attribute to only register the class as a service in some environments::