Skip to content

Commit

Permalink
Add errer reporting in example and minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Aug 9, 2021
1 parent c527263 commit baf56b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
This project aims to run on any platform and thus does not require any PHP
extensions and supports running on legacy PHP 5.4 through current PHP 7+ and
HHVM.
It's *highly recommended to use PHP 7+* for this project.
It's *highly recommended to use the latest supported PHP version* for this project.

## Tests

Expand Down Expand Up @@ -551,7 +551,7 @@ $ docker run -it --rm --net=host \
To run the test suite, go to the project root and run:

```bash
$ php vendor/bin/phpunit
$ vendor/bin/phpunit
```

## License
Expand Down
4 changes: 3 additions & 1 deletion examples/12-slow-stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@
});

$connection->quit();
}, 'printf');
}, function (Exception $e) {
echo 'Error: ' . $e->getMessage() . PHP_EOL;
});

0 comments on commit baf56b6

Please sign in to comment.