Skip to content

Commit

Permalink
Merge pull request #210 from bzikarsky/bz/deprecated-warning-fix
Browse files Browse the repository at this point in the history
Improve test suite to fix default Exception message (PHP 8.1)
  • Loading branch information
clue authored Feb 7, 2022
2 parents 333ab4b + 74de318 commit ec444aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Internal/RejectedPromiseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getPromiseTestAdapter(callable $canceller = null)
$promise = new RejectedPromise($reason);
}
},
'settle' => function ($reason = null) use (&$promise) {
'settle' => function ($reason = "") use (&$promise) {
if (!$promise) {
if (!$reason instanceof Exception) {
$reason = new Exception($reason);
Expand Down

0 comments on commit ec444aa

Please sign in to comment.