Skip to content

Commit 8fe0e60

Browse files
committed
Fix example still using Util::reject() instead of When::reject()
1 parent ed03955 commit 8fe0e60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ $deferred->promise()
383383
})
384384
->then(null, function (\Exception $x) {
385385
// Can also propagate by returning another rejection
386-
return React\Promise\Util::reject((integer) $x->getMessage() + 1);
386+
return React\Promise\When::reject((integer) $x->getMessage() + 1);
387387
})
388388
->then(null, function ($x) {
389389
echo 'Reject ' . $x; // 4

0 commit comments

Comments
 (0)