File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 "evenement/evenement" : " ^3.0 || ^2.0 || ^1.0" ,
1717 "react/event-loop" : " ^1.0 || ^0.5 || ^0.4 || ^0.3" ,
1818 "react/promise" : " ^2.0 || ^1.1" ,
19- "react/socket" : " ^1.0 || ^0.8 || ^0.7 "
19+ "react/socket" : " ^1.0 || ^0.8.3 "
2020 },
2121 "autoload" : {
2222 "psr-4" : { "Clue\\ React\\ Redis\\ " : " src/" }
Original file line number Diff line number Diff line change @@ -107,10 +107,6 @@ private function parseUrl($target)
107107 $ parts ['port ' ] = 6379 ;
108108 }
109109
110- if ($ parts ['host ' ] === 'localhost ' ) {
111- $ parts ['host ' ] = '127.0.0.1 ' ;
112- }
113-
114110 if (isset ($ parts ['pass ' ])) {
115111 $ parts ['auth ' ] = rawurldecode ($ parts ['pass ' ]);
116112 }
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ public function testWillConnectWithDefaultPort()
2727 $ this ->factory ->createClient ('redis.example.com ' );
2828 }
2929
30- public function testWillConnectToLocalIpWhenTargetIsLocalhost ()
30+ public function testWillConnectToLocalhost ()
3131 {
32- $ this ->connector ->expects ($ this ->once ())->method ('connect ' )->with ('127.0.0.1 :1337 ' )->willReturn (Promise \reject (new \RuntimeException ()));
32+ $ this ->connector ->expects ($ this ->once ())->method ('connect ' )->with ('localhost :1337 ' )->willReturn (Promise \reject (new \RuntimeException ()));
3333 $ this ->factory ->createClient ('localhost:1337 ' );
3434 }
3535
You can’t perform that action at this time.
0 commit comments