public function FulfilledPromise::reject in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/src/FulfilledPromise.php \GuzzleHttp\Promise\FulfilledPromise::reject()
Reject the promise with the given reason.
Parameters
mixed $reason:
Throws
\RuntimeException if the promise is already resolved.
Overrides PromiseInterface::reject
File
- vendor/
guzzlehttp/ promises/ src/ FulfilledPromise.php, line 71
Class
- FulfilledPromise
- A promise that has been fulfilled.
Namespace
GuzzleHttp\PromiseCode
public function reject($reason) {
throw new \LogicException("Cannot reject a fulfilled promise");
}