function is_rejected in Auth0 Single Sign On 8.2
Returns true if a promise is rejected.
Parameters
PromiseInterface $promise:
Return value
bool
File
- vendor/
guzzlehttp/ promises/ src/ functions.php, line 430
Namespace
GuzzleHttp\PromiseCode
function is_rejected(PromiseInterface $promise) {
return $promise
->getState() === PromiseInterface::REJECTED;
}