File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
"require" : {
7
7
"php" : " >=5.4.0" ,
8
8
"guzzlehttp/psr7" : " ^1.0" ,
9
- "react/socket" : " ^0.7" ,
9
+ "react/socket" : " ^1.0 || ^0.8 || ^ 0.7" ,
10
10
"react/event-loop" : " 0.4.*" ,
11
11
"react/stream" : " 0.4.*" ,
12
12
"react/promise" : " ~2.2" ,
Original file line number Diff line number Diff line change 6
6
use GuzzleHttp \Psr7 as gPsr ;
7
7
use React \Socket \ConnectorInterface ;
8
8
use React \Stream \WritableStreamInterface ;
9
+ use React \Socket \ConnectionInterface ;
9
10
10
11
/**
11
12
* @event headers-written
@@ -60,7 +61,7 @@ public function writeHead()
60
61
$ this
61
62
->connect ()
62
63
->done (
63
- function ($ stream ) use ($ requestData , &$ streamRef , &$ stateRef ) {
64
+ function (ConnectionInterface $ stream ) use ($ requestData , &$ streamRef , &$ stateRef ) {
64
65
$ streamRef = $ stream ;
65
66
66
67
$ stream ->on ('drain ' , array ($ this , 'handleDrain ' ));
You can’t perform that action at this time.
0 commit comments