diff --git a/src/Client.php b/src/Client.php index 32ba777..51724a6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -43,13 +43,11 @@ public static function createWithConfig(array $config): Client return new self(self::buildClient($config)); } - #[\Override] public function sendRequest(RequestInterface $request): ResponseInterface { return $this->sendAsyncRequest($request)->wait(); } - #[\Override] public function sendAsyncRequest(RequestInterface $request) { $promise = $this->guzzle->sendAsync($request); diff --git a/src/Promise.php b/src/Promise.php index 14a8812..815329d 100644 --- a/src/Promise.php +++ b/src/Promise.php @@ -70,19 +70,16 @@ public function __construct(PromiseInterface $promise, RequestInterface $request }); } - #[\Override] public function then(?callable $onFulfilled = null, ?callable $onRejected = null) { return new static($this->promise->then($onFulfilled, $onRejected), $this->request); } - #[\Override] public function getState() { return $this->state; } - #[\Override] public function wait($unwrap = true) { $this->promise->wait(false);