File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 8
8
(#38 by @clue )
9
9
10
10
``` 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
+ ```
21
21
22
22
> Contains no other changes, so it's actually fully compatible with the v0.5.2 release.
23
23
You can’t perform that action at this time.
0 commit comments