public function RejectedPromise::__construct in Lockr 7.3
File
- vendor/
guzzlehttp/ promises/ src/ RejectedPromise.php, line 14
Class
- RejectedPromise
- A promise that has been rejected.
Namespace
GuzzleHttp\PromiseCode
public function __construct($reason) {
if (method_exists($reason, 'then')) {
throw new \InvalidArgumentException('You cannot create a RejectedPromise with a promise.');
}
$this->reason = $reason;
}