Skip to content

Commit b0a4d10

Browse files
committed
documentation examples improvement
1 parent eb9cc67 commit b0a4d10

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,8 @@ This example shows how such a long-term action could look like:
549549

550550
```php
551551
$server = new Server(function (ServerRequestInterface $request) use ($loop) {
552-
return new Promise(function ($resolve, $reject) use ($request, $loop) {
553-
$loop->addTimer(1.5, function() use ($loop, $resolve) {
552+
return new Promise(function ($resolve, $reject) use ($loop) {
553+
$loop->addTimer(1.5, function() use ($resolve) {
554554
$response = new Response(
555555
200,
556556
array(
@@ -682,7 +682,7 @@ pass this header yourself.
682682
If you know the length of your stream body, you MAY specify it like this instead:
683683

684684
```php
685-
$stream = new ThroughStream()
685+
$stream = new ThroughStream();
686686
$server = new Server(function (ServerRequestInterface $request) use ($stream) {
687687
return new Response(
688688
200,

0 commit comments

Comments
 (0)