Skip to content

Commit baf56b6

Browse files
committed
Add errer reporting in example and minor clean up
1 parent c527263 commit baf56b6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
513513
This project aims to run on any platform and thus does not require any PHP
514514
extensions and supports running on legacy PHP 5.4 through current PHP 7+ and
515515
HHVM.
516-
It's *highly recommended to use PHP 7+* for this project.
516+
It's *highly recommended to use the latest supported PHP version* for this project.
517517

518518
## Tests
519519

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

553553
```bash
554-
$ php vendor/bin/phpunit
554+
$ vendor/bin/phpunit
555555
```
556556

557557
## License

examples/12-slow-stream.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,6 @@
7272
});
7373

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

0 commit comments

Comments
 (0)