We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
19 | class ReactPromiseAdapter extends BaseReactPromiseAdapter implements PromiseAdapterInterface |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 10 | public function isThenable($value) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 9 | public function convertThenable($thenable) |
|
33 | { |
||
34 | 9 | if ($thenable instanceof Promise) { |
|
35 | 9 | return $thenable; |
|
36 | } |
||
37 | |||
38 | 9 | return parent::convertThenable($thenable); |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * Synchronously wait when promise completes. |
||
43 | * |
||
44 | * @param Promise $promise |
||
45 | * |
||
46 | * @return ExecutionResult |
||
47 | * |
||
48 | * @throws \Exception |
||
49 | */ |
||
50 | 10 | public function wait(Promise $promise) |
|
77 | } |
||
78 |