We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e49f949 commit 6a45c24Copy full SHA for 6a45c24
1 file changed
README.md
@@ -395,6 +395,11 @@ $promise = React\Promise\reject(\Throwable $reason);
395
396
Creates a rejected promise for the supplied `$reason`.
397
398
+Note that the [`\Throwable`](https://www.php.net/manual/en/class.throwable.php) interface introduced in PHP 7 covers
399
+both user land [`\Exception`](https://www.php.net/manual/en/class.exception.php)'s and
400
+[`\Error`](https://www.php.net/manual/en/class.error.php) internal PHP errors. By enforcing `\Throwable` as reason to
401
+reject a promise, any language error or user land exception can be used to reject a promise.
402
+
403
#### all()
404
405
```php
0 commit comments