From cc2636b3009b2b647c63beb75b70716a7978bebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Romey?= Date: Tue, 11 Apr 2023 11:14:47 +0200 Subject: [PATCH] Update http_client.rst --- http_client.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http_client.rst b/http_client.rst index e0c6dafd777..d0c49e7050e 100644 --- a/http_client.rst +++ b/http_client.rst @@ -60,7 +60,10 @@ automatically when type-hinting for :class:`Symfony\\Contracts\\HttpClient\\Http use Symfony\Component\HttpClient\HttpClient; $client = HttpClient::create(); - $response = $client->request('GET', 'https://api.github.com/repos/symfony/symfony-docs'); + $response = $client->request( + 'GET', + 'https://api.github.com/repos/symfony/symfony-docs' + ); $statusCode = $response->getStatusCode(); // $statusCode = 200