From 8e229e21f99d7e3bae54ba205cf6d68987e352b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Fri, 7 Apr 2017 19:46:42 +0200 Subject: [PATCH] Forward compatibility with Stream v0.6 and v0.5 (while keeping BC) --- README.md | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"