File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
use React \Promise \Timer \TimeoutException ;
13
13
use React \Socket \Connector ;
14
14
use React \Socket \ConnectorInterface ;
15
- use React \Socket \ConnectionInterface ;
15
+ use React \Socket \ConnectionInterface as SocketConnectionInterface ;
16
16
use React \MySQL \Io \LazyConnection ;
17
17
18
18
class Factory
@@ -146,13 +146,13 @@ public function createConnection($uri)
146
146
$ reject (new \RuntimeException ('Connection to database server cancelled ' ));
147
147
148
148
// either close successful connection or cancel pending connection attempt
149
- $ connecting ->then (function (ConnectionInterface $ connection ) {
149
+ $ connecting ->then (function (SocketConnectionInterface $ connection ) {
150
150
$ connection ->close ();
151
151
});
152
152
$ connecting ->cancel ();
153
153
});
154
154
155
- $ connecting ->then (function (ConnectionInterface $ stream ) use ($ parts , $ deferred ) {
155
+ $ connecting ->then (function (SocketConnectionInterface $ stream ) use ($ parts , $ deferred ) {
156
156
$ executor = new Executor ();
157
157
$ parser = new Parser ($ stream , $ executor );
158
158
You can’t perform that action at this time.
0 commit comments