Skip to content

Commit bdb74f5

Browse files
committed
minor #18189 Update http_client.rst (jeremyFreeAgent)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- Update http_client.rst Keep consistency with the "Framework Use" block. Commits ------- cc2636b Update http_client.rst
2 parents 8c900ca + cc2636b commit bdb74f5

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)