Skip to content

Commit 4089034

Browse files
authored
Merge pull request #17 from seregazhuk/fix-example-in-readme
Fix file read example in Readme
2 parents 7112d79 + e7b5295 commit 4089034

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ $filesystem->getContents('test.txt')->then(function($contents) {
6969
Which is a convenience method for:
7070

7171
```php
72-
$filesystem->open('test.txt')->then(function($stream) {
72+
$filesystem->file('test.txt')->open('r')->then(function($stream) {
7373
return React\Stream\BufferedSink::createPromise($stream);
7474
})->then(function($contents) {
75+
// ...
7576
});
7677
```
7778

0 commit comments

Comments
 (0)