From 2ea888fdc687621e8ad6bce3ecb7a8e19cb7a87b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 1 Oct 2024 18:10:28 +0300 Subject: drop php-http/guzzle7-adapter --- vendor/php-http/promise/src/FulfilledPromise.php | 58 ------------------------ 1 file changed, 58 deletions(-) delete mode 100644 vendor/php-http/promise/src/FulfilledPromise.php (limited to 'vendor/php-http/promise/src/FulfilledPromise.php') diff --git a/vendor/php-http/promise/src/FulfilledPromise.php b/vendor/php-http/promise/src/FulfilledPromise.php deleted file mode 100644 index f60f686a2..000000000 --- a/vendor/php-http/promise/src/FulfilledPromise.php +++ /dev/null @@ -1,58 +0,0 @@ - - */ -final class FulfilledPromise implements Promise -{ - /** - * @var mixed - */ - private $result; - - /** - * @param $result - */ - public function __construct($result) - { - $this->result = $result; - } - - /** - * {@inheritdoc} - */ - public function then(callable $onFulfilled = null, callable $onRejected = null) - { - if (null === $onFulfilled) { - return $this; - } - - try { - return new self($onFulfilled($this->result)); - } catch (\Exception $e) { - return new RejectedPromise($e); - } - } - - /** - * {@inheritdoc} - */ - public function getState() - { - return Promise::FULFILLED; - } - - /** - * {@inheritdoc} - */ - public function wait($unwrap = true) - { - if ($unwrap) { - return $this->result; - } - } -} -- cgit v1.2.3-54-g00ecf