public function NotPromiseInstance::reject in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/NotPromiseInstance.php \GuzzleHttp\Promise\Tests\NotPromiseInstance::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/ tests/ NotPromiseInstance.php, line 31
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function reject($reason) {
$this->nextPromise
->reject($reason);
}