Skip to content

Commit 086f514

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: use the right method when dealing with promises
2 parents 3ac74f0 + 9d7f109 commit 086f514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ Then you're ready to go::
12781278

12791279
$httpClient = new HttplugClient();
12801280
$request = $httpClient->createRequest('GET', 'https://my.api.com/');
1281-
$promise = $httpClient->sendRequest($request)
1281+
$promise = $httpClient->sendAsyncRequest($request)
12821282
->then(
12831283
function (ResponseInterface $response) {
12841284
echo 'Got status '.$response->getStatusCode();

0 commit comments

Comments
 (0)