Skip to content

Commit 2b9168c

Browse files
committed
Forward compatibility with upcoming Socket v1.0 and v0.8
1 parent 583b98a commit 2b9168c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"require": {
77
"php": ">=5.4.0",
88
"guzzlehttp/psr7": "^1.0",
9-
"react/socket": "^0.7",
9+
"react/socket": "^1.0 || ^0.8 || ^0.7",
1010
"react/event-loop": "0.4.*",
1111
"react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.2",
1212
"react/promise": "~2.2",

tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RequestTest extends TestCase
1717

1818
public function setUp()
1919
{
20-
$this->stream = $this->getMockBuilder('React\Socket\Connection')
20+
$this->stream = $this->getMockBuilder('React\Socket\ConnectionInterface')
2121
->disableOriginalConstructor()
2222
->getMock();
2323

0 commit comments

Comments
 (0)