Skip to content

Commit 9fd1e68

Browse files
Update http_client.rst
1 parent 779e983 commit 9fd1e68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

http_client.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ automatically when type-hinting for :class:`Symfony\\Contracts\\HttpClient\\Http
6464
use Symfony\Component\HttpClient\HttpClient;
6565
6666
$client = HttpClient::create();
67-
$response = $client->request('GET', 'https://api.github.com/repos/symfony/symfony-docs');
67+
$response = $client->request(
68+
'GET',
69+
'https://api.github.com/repos/symfony/symfony-docs'
70+
);
6871
6972
$statusCode = $response->getStatusCode();
7073
// $statusCode = 200

0 commit comments

Comments
 (0)