File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 30
30
"react/cache" : " ^1.0 || ^0.6 || ^0.5" ,
31
31
"react/event-loop" : " ^1.2" ,
32
32
"react/promise" : " ^3.0 || ^2.7 || ^1.2.1" ,
33
- "react/promise-timer" : " ^1.8 "
33
+ "react/promise-timer" : " ^1.9 "
34
34
},
35
35
"require-dev" : {
36
36
"clue/block-react" : " ^1.2" ,
Original file line number Diff line number Diff line change 2
2
3
3
namespace React \Dns \Query ;
4
4
5
- use React \Promise \CancellablePromiseInterface ;
6
5
use React \Promise \Deferred ;
7
6
use React \Promise \PromiseInterface ;
8
7
@@ -25,7 +24,7 @@ public function query(Query $query)
25
24
public function tryQuery (Query $ query , $ retries )
26
25
{
27
26
$ deferred = new Deferred (function () use (&$ promise ) {
28
- if ($ promise instanceof CancellablePromiseInterface || (! \interface_exists ( ' React\Promise\CancellablePromiseInterface ' ) && \method_exists ($ promise , 'cancel ' ) )) {
27
+ if ($ promise instanceof PromiseInterface && \method_exists ($ promise , 'cancel ' )) {
29
28
$ promise ->cancel ();
30
29
}
31
30
});
You can’t perform that action at this time.
0 commit comments