Skip to content

Commit 26b32eb

Browse files
authored
Merge pull request #77 from kelunik/fix-example-01
Remove unneeded closure variable from examples/01-echo.php
2 parents 691dbf6 + c44ba05 commit 26b32eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/01-echo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
));
3030
}
3131

32-
$server->on('connection', function (ConnectionInterface $conn) use ($loop) {
32+
$server->on('connection', function (ConnectionInterface $conn) {
3333
echo '[connected]' . PHP_EOL;
3434
$conn->pipe($conn);
3535
});

0 commit comments

Comments
 (0)