Skip to content

Commit c1c69dc

Browse files
authored
Update CHANGELOG.md
1 parent 02cf2ff commit c1c69dc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
(#38 by @clue)
99

1010
```php
11-
// old
12-
$client->on('data', function (MessageInterface $message, Client $client) {
13-
// process an incoming message (raw message object)
14-
});
15-
16-
// new
17-
$client->on('data', function (MessageInterface $message) use ($client) {
18-
// process an incoming message (raw message object)
19-
});
20-
```
11+
// old
12+
$client->on('data', function (MessageInterface $message, Client $client) {
13+
// process an incoming message (raw message object)
14+
});
15+
16+
// new
17+
$client->on('data', function (MessageInterface $message) use ($client) {
18+
// process an incoming message (raw message object)
19+
});
20+
```
2121

2222
> Contains no other changes, so it's actually fully compatible with the v0.5.2 release.
2323

0 commit comments

Comments
 (0)