We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
10 | class ReactPromiseAdapter extends BaseReactPromiseAdapter implements PromiseAdapterInterface |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 17 | public function isThenable($value) |
|
16 | { |
||
17 | 17 | return parent::isThenable($value instanceof Promise ? $value->adoptedPromise : $value); |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | 11 | public function convertThenable($thenable) |
|
24 | { |
||
25 | 11 | if ($thenable instanceof Promise) { |
|
26 | 1 | return $thenable; |
|
27 | } |
||
28 | |||
29 | 11 | return parent::convertThenable($thenable); |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Synchronously wait when promise completes. |
||
34 | * |
||
35 | * @param Promise $promise |
||
36 | * @param callable $onProgress |
||
37 | * |
||
38 | * @return ExecutionResult |
||
39 | * |
||
40 | * @throws \Exception |
||
41 | */ |
||
42 | 17 | public function wait(Promise $promise, callable $onProgress = null) |
|
77 | } |
||
78 |