From e6849694336e56af70449b929ba3d6242fbfcdbb Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sat, 23 Jul 2016 20:01:12 +0200 Subject: [PATCH] document type for magic methods this is according to phpdoc and works with phpstorm --- src/Client.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Client.php b/src/Client.php index 6089c186..84dc6cc6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -9,18 +9,18 @@ use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; /** - * @method ResponseInterface get($uri, array $options = []) - * @method ResponseInterface head($uri, array $options = []) - * @method ResponseInterface put($uri, array $options = []) - * @method ResponseInterface post($uri, array $options = []) - * @method ResponseInterface patch($uri, array $options = []) - * @method ResponseInterface delete($uri, array $options = []) - * @method Promise\PromiseInterface getAsync($uri, array $options = []) - * @method Promise\PromiseInterface headAsync($uri, array $options = []) - * @method Promise\PromiseInterface putAsync($uri, array $options = []) - * @method Promise\PromiseInterface postAsync($uri, array $options = []) - * @method Promise\PromiseInterface patchAsync($uri, array $options = []) - * @method Promise\PromiseInterface deleteAsync($uri, array $options = []) + * @method ResponseInterface get(string|UriInterface $uri, array $options = []) + * @method ResponseInterface head(string|UriInterface $uri, array $options = []) + * @method ResponseInterface put(string|UriInterface $uri, array $options = []) + * @method ResponseInterface post(string|UriInterface $uri, array $options = []) + * @method ResponseInterface patch(string|UriInterface $uri, array $options = []) + * @method ResponseInterface delete(string|UriInterface $uri, array $options = []) + * @method Promise\PromiseInterface getAsync(string|UriInterface $uri, array $options = []) + * @method Promise\PromiseInterface headAsync(string|UriInterface $uri, array $options = []) + * @method Promise\PromiseInterface putAsync(string|UriInterface $uri, array $options = []) + * @method Promise\PromiseInterface postAsync(string|UriInterface $uri, array $options = []) + * @method Promise\PromiseInterface patchAsync(string|UriInterface $uri, array $options = []) + * @method Promise\PromiseInterface deleteAsync(string|UriInterface $uri, array $options = []) */ class Client implements ClientInterface {