Skip to content

Commit 60115b5

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Update http_client.rst
2 parents bdf8b00 + bdb74f5 commit 60115b5

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
@@ -58,7 +58,10 @@ automatically when type-hinting for :class:`Symfony\\Contracts\\HttpClient\\Http
5858
use Symfony\Component\HttpClient\HttpClient;
5959
6060
$client = HttpClient::create();
61-
$response = $client->request('GET', 'https://api.github.com/repos/symfony/symfony-docs');
61+
$response = $client->request(
62+
'GET',
63+
'https://api.github.com/repos/symfony/symfony-docs'
64+
);
6265
6366
$statusCode = $response->getStatusCode();
6467
// $statusCode = 200

0 commit comments

Comments
 (0)