File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ class MyClass
177177
178178If 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
183183class 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
209209use Closure;
You can’t perform that action at this time.
0 commit comments