From e7b5295a5a96aca37fc7d69b1520a6714e3d9aeb Mon Sep 17 00:00:00 2001 From: Zhuk Sergey Date: Sun, 18 Feb 2018 15:14:08 +0300 Subject: [PATCH] Fix file read example in Readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fdd03874..04610d21 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,10 @@ $filesystem->getContents('test.txt')->then(function($contents) { Which is a convenience method for: ```php -$filesystem->open('test.txt')->then(function($stream) { +$filesystem->file('test.txt')->open('r')->then(function($stream) { return React\Stream\BufferedSink::createPromise($stream); })->then(function($contents) { + // ... }); ```