Skip to content

Commit 78ea0a6

Browse files
Merge branch 'release/2.1.1'
2 parents 128a6a6 + e6bd5ae commit 78ea0a6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
66

77
## Unreleased
88

9+
## 2.1.1 (2018-03-18)
10+
11+
### Fixed
12+
13+
- Fix class method example in readme
14+
915
## 2.1.0 (2018-03-18)
1016

1117
### Added

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class MyClass
177177

178178
If you don't want to use the internal pipe proxy and pass `$this`, there are two other ways you can use class methods.
179179

180-
Using an array:
180+
Using an array (for public methods only):
181181

182182
```php
183183
class MyClass
@@ -196,14 +196,14 @@ class MyClass
196196
*
197197
* @return string
198198
*/
199-
private function lowercase(string $value) : string
199+
public function lowercase(string $value) : string
200200
{
201201
return mb_strtolower($value);
202202
}
203203
}
204204
```
205205

206-
Parsing the callable method to a closure:
206+
By parsing the callable method to a closure:
207207

208208
```php
209209
use Closure;

0 commit comments

Comments
 (0)