X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FCall%2FDeferred.php;fp=lib%2FAPI%2FCall%2FDeferred.php;h=304ec363bf1d7acdbf59ecf80b2e418c12b217a8;hp=562978c79ba44ad012f9a4c795576983d9039e5e;hb=d38b3ae03472ba2f9af5009778574b23472bb3f7;hpb=e368287b3cd2dd40945ac8d1a1946bc32268007d diff --git a/lib/API/Call/Deferred.php b/lib/API/Call/Deferred.php index 562978c..304ec36 100644 --- a/lib/API/Call/Deferred.php +++ b/lib/API/Call/Deferred.php @@ -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(),