Skip to content

Commit b75608e

Browse files
authored
Merge pull request #288 from clue-labs/loop
Fix test suite forward compatibility with upcoming EventLoop releases
2 parents 0410c94 + 1d73220 commit b75608e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/ServerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace React\Tests\Http;
44

55
use React\EventLoop\Factory;
6-
use React\EventLoop\Timer\TimerInterface;
76
use React\Http\Server;
87
use Psr\Http\Message\ServerRequestInterface;
98
use React\Promise\Deferred;
@@ -119,7 +118,7 @@ public function testPostFileUpload()
119118

120119
$connection = $this->connection;
121120
$data = $this->createPostFileUploadRequest();
122-
$loop->addPeriodicTimer(0.01, function (TimerInterface $timer) use ($loop, &$data, $connection) {
121+
$loop->addPeriodicTimer(0.01, function ($timer) use ($loop, &$data, $connection) {
123122
$line = array_shift($data);
124123
$connection->emit('data', array($line));
125124

0 commit comments

Comments
 (0)