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 c1a75d8Copy full SHA for c1a75d8
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 was introduced in PHP 7
399
+covers both user [`\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