We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
11 | class ReactPromiseAdapterTest extends TestCase |
||
12 | { |
||
13 | /** @var ReactPromiseAdapter */ |
||
14 | private $adapter; |
||
15 | |||
16 | public function setUp() |
||
20 | |||
21 | /** |
||
22 | * @expectedException \InvalidArgumentException |
||
23 | * @expectedExceptionMessage The "Overblog\GraphQLBundle\Executor\Promise\Adapter\ReactPromiseAdapter::wait" method must be call with compatible a Promise. |
||
24 | */ |
||
25 | public function testWaitWithNotSupportedPromise() |
||
30 | |||
31 | /** |
||
32 | * @expectedException \Exception |
||
33 | * @expectedExceptionMessage Promise has been rejected! |
||
34 | */ |
||
35 | public function testWaitRejectedPromise() |
||
40 | |||
41 | public function testWaitAsyncPromise() |
||
65 | |||
66 | public function testSkipsConversionWhenPromiseIsAGraphQlOne() |
||
78 | } |
||
79 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: