Skip to content

Commit cc7e84e

Browse files
Fix examples in PSR-7-http-message-meta.md
1 parent 9f640b3 commit cc7e84e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

accepted/PSR-7-http-message-meta.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ $baseRequest = new Request($uri, null, [
258258
]);
259259

260260
$request = $baseRequest->withUri($uri->withPath('/user'))->withMethod('GET');
261-
$response = $client->send($request);
261+
$response = $client->sendRequest($request);
262262

263263
// get user id from $response
264264

@@ -271,11 +271,11 @@ $request = $baseRequest
271271
->withMethod('POST')
272272
->withHeader('Content-Type', 'application/json')
273273
->withBody($body);
274-
$response = $client->send($request)
274+
$response = $client->sendRequest($request)
275275

276276
// No need to overwrite headers or body!
277277
$request = $baseRequest->withUri($uri->withPath('/tasks'))->withMethod('GET');
278-
$response = $client->send($request);
278+
$response = $client->sendRequest($request);
279279
~~~
280280

281281
On the server-side, developers will need to:

0 commit comments

Comments
 (0)