From 9f4d2729e319a4d71f7f26664c8ac2e73e3e5024 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 6 Dec 2024 21:21:28 +0100 Subject: [PATCH 1/3] Remove OTV --- http_client.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http_client.rst b/http_client.rst index 9e9a74b973b..49b019f14e5 100644 --- a/http_client.rst +++ b/http_client.rst @@ -2192,9 +2192,8 @@ test it in a real application:: // ... other checks $responseJson = $response->getContent(); - $responseData = json_decode($responseJson, true, 512, JSON_THROW_ON_ERROR); - return $responseData; + return json_decode($responseJson, true, 512, JSON_THROW_ON_ERROR); } } From cc3cc756227df97818fa7efb58357f5ad03f7928 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 6 Dec 2024 21:22:34 +0100 Subject: [PATCH 2/3] - --- http_client.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http_client.rst b/http_client.rst index 49b019f14e5..3992d1100e7 100644 --- a/http_client.rst +++ b/http_client.rst @@ -2197,6 +2197,8 @@ test it in a real application:: } } +:: + // ExternalArticleServiceTest.php use PHPUnit\Framework\TestCase; use Symfony\Component\HttpClient\MockHttpClient; From d3ba38720814f01c413e0023fff8af9ba6939cc0 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sat, 7 Dec 2024 07:12:49 +0100 Subject: [PATCH 3/3] Update http_client.rst Co-authored-by: Wouter de Jong --- http_client.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_client.rst b/http_client.rst index 3992d1100e7..9cd9b80208c 100644 --- a/http_client.rst +++ b/http_client.rst @@ -2197,7 +2197,7 @@ test it in a real application:: } } -:: +.. code-block:: php // ExternalArticleServiceTest.php use PHPUnit\Framework\TestCase;