File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 44<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
55 xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
66 bootstrap =" vendor/autoload.php"
7+ cacheResult =" false"
78 colors =" true"
8- cacheResult = " false " >
9+ convertDeprecationsToExceptions = " true " >
910 <testsuites >
1011 <testsuite name =" Promise Test Suite" >
1112 <directory >./tests/</directory >
1920 <file >./src/functions_include.php</file >
2021 </exclude >
2122 </coverage >
23+ <php >
24+ <ini name =" error_reporting" value =" -1" />
25+ </php >
2226</phpunit >
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ public function getPromiseTestAdapter(callable $canceller = null)
2929 'resolve ' => function () {
3030 throw new LogicException ('You cannot call resolve() for React\Promise\RejectedPromise ' );
3131 },
32- 'reject ' => function ($ reason = null ) use (&$ promise ) {
32+ 'reject ' => function (\ Throwable $ reason ) use (&$ promise ) {
3333 if (!$ promise ) {
3434 $ promise = new RejectedPromise ($ reason );
3535 }
3636 },
37- 'settle ' => function ($ reason = "" ) use (&$ promise ) {
37+ 'settle ' => function ($ reason = '' ) use (&$ promise ) {
3838 if (!$ promise ) {
3939 if (!$ reason instanceof Exception) {
40- $ reason = new Exception ($ reason );
40+ $ reason = new Exception (( string ) $ reason );
4141 }
4242
4343 $ promise = new RejectedPromise ($ reason );
You can’t perform that action at this time.
0 commit comments