You are here

public function NotPromiseInstance::reject in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

NotPromiseInstance

Namespace

GuzzleHttp\Promise\Tests

Code

public function reject($reason) {
  $this->nextPromise
    ->reject($reason);
}