drop async-interop
[m6w6/seekat] / lib / API / Call / Deferred.php
index 562978c79ba44ad012f9a4c795576983d9039e5e..304ec363bf1d7acdbf59ecf80b2e418c12b217a8 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace seekat\API\Call;
 
-use AsyncInterop\Promise;
 use http\{
        Client, Client\Request, Client\Response
 };
@@ -52,7 +51,7 @@ final class Deferred
        private $response;
 
        /**
-        * @var Promise
+        * @var mixed
         */
        private $promise;
 
@@ -100,7 +99,7 @@ final class Deferred
                $this->reject = API\Future\rejecter($future, $context);
        }
 
-       function __invoke() : Promise {
+       function __invoke() {
                if ($this->cache->load($this->request, $cached)) {
                        $this->logger->info("deferred -> cached", [
                                "method" => $this->request->getRequestMethod(),