diff --git a/README.md b/README.md index 6326c44..8133fac 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ It wraps a given `ReadableStreamInterface` and exposes its data through the same interface. ```php -$stdin = new Stream(STDIN, $loop); +$stdin = new ReadableResourceStream(STDIN, $loop); $stream = new Sequencer($stdin); diff --git a/composer.json b/composer.json index 1ecfefa..6c2ca1e 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "require": { "php": ">=5.3", - "react/stream": "^0.4 || ^0.3" + "react/stream": "^0.6 || ^0.5 || ^0.4 || ^0.3" }, "require-dev": { "phpunit/phpunit": "^5.0 || ^4.8"