Skip to content

Commit 8a0f64f

Browse files
committed
Update README
1 parent 72bc732 commit 8a0f64f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ interface SomeInterface
116116
{
117117
/**
118118
* Return an iterable list of items
119-
*
119+
*
120120
* @return iterable
121121
*/
122122
public function getItems(): iterable;
@@ -150,7 +150,7 @@ $isFruit = function ($eatable) {
150150
return 'potato' !== $eatable;
151151
};
152152

153-
var_dump(iterator_to_array(iterable($data)->withFilter($isFruit)->withMap('strtoupper'))); // ['banana', 'pineapple']
153+
var_dump(iterator_to_array(iterable($data)->filter($isFruit)->map('strtoupper'))); // ['banana', 'pineapple']
154154
```
155155

156156
Installation
@@ -170,4 +170,4 @@ Unit tests
170170
==========
171171
```
172172
./vendor/bin/phpunit
173-
```
173+
```

0 commit comments

Comments
 (0)