X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FCall.php;h=8b0f62fd726d67ca30f4c6dcbacfc57469d55d41;hp=7eba2a80b7fbfb76f6b7748c728c06797410c357;hb=d38b3ae03472ba2f9af5009778574b23472bb3f7;hpb=e368287b3cd2dd40945ac8d1a1946bc32268007d diff --git a/lib/API/Call.php b/lib/API/Call.php index 7eba2a8..8b0f62f 100644 --- a/lib/API/Call.php +++ b/lib/API/Call.php @@ -2,10 +2,8 @@ namespace seekat\API; -use AsyncInterop\Promise; use http\Url; use seekat\API; -use seekat\Exception; final class Call { @@ -24,7 +22,7 @@ final class Call $this->call = $call; } - function __invoke(array $args) : Promise { + function __invoke(array $args) { if ($this->api->exists($this->call."_url", $url)) { $url = new Url(uri_template($url, (array)current($args))); $promise = $this->api->withUrl($url)->get(...$args);