Skip to content

Commit cc2636b

Browse files
jeremyFreeAgentOskarStark
authored andcommitted
Update http_client.rst
1 parent 8c900ca commit cc2636b

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
@@ -60,7 +60,10 @@ automatically when type-hinting for :class:`Symfony\\Contracts\\HttpClient\\Http
6060
use Symfony\Component\HttpClient\HttpClient;
6161
6262
$client = HttpClient::create();
63-
$response = $client->request('GET', 'https://api.github.com/repos/symfony/symfony-docs');
63+
$response = $client->request(
64+
'GET',
65+
'https://api.github.com/repos/symfony/symfony-docs'
66+
);
6467
6568
$statusCode = $response->getStatusCode();
6669
// $statusCode = 200

0 commit comments

Comments
 (0)