|
|
@@ -15,9 +15,9 @@ interface ApiRequestInterface
|
|
|
/**
|
|
|
* Sends a GET request and returns the response's body decoded as json
|
|
|
* @param string $path
|
|
|
- * @param array $parameters
|
|
|
- * @param array $options
|
|
|
- * @return array
|
|
|
+ * @param array<mixed> $parameters
|
|
|
+ * @param array<mixed> $options
|
|
|
+ * @return array<mixed>
|
|
|
* @throws HttpException
|
|
|
*/
|
|
|
public function getJsonContent(string $path, array $parameters = [], array $options = []): array;
|
|
|
@@ -26,8 +26,8 @@ interface ApiRequestInterface
|
|
|
* Sends a GET request and returns the response's body
|
|
|
*
|
|
|
* @param string $path
|
|
|
- * @param array $parameters
|
|
|
- * @param array $options
|
|
|
+ * @param array<mixed> $parameters
|
|
|
+ * @param array<mixed> $options
|
|
|
* @return string
|
|
|
* @throws HttpException
|
|
|
*/
|
|
|
@@ -37,8 +37,8 @@ interface ApiRequestInterface
|
|
|
* Sends a GET request and returns the response
|
|
|
*
|
|
|
* @param string $path
|
|
|
- * @param array $parameters
|
|
|
- * @param array $options
|
|
|
+ * @param array<mixed> $parameters
|
|
|
+ * @param array<mixed> $options
|
|
|
* @return ResponseInterface
|
|
|
* @throws HttpException
|
|
|
*/
|
|
|
@@ -48,8 +48,8 @@ interface ApiRequestInterface
|
|
|
* Sends a POST request and returns the response
|
|
|
*
|
|
|
* @param string $path
|
|
|
- * @param array $parameters
|
|
|
- * @param array $options
|
|
|
+ * @param array<mixed> $parameters
|
|
|
+ * @param array<mixed> $options
|
|
|
* @return ResponseInterface
|
|
|
* @throws HttpException
|
|
|
*/
|
|
|
@@ -59,8 +59,8 @@ interface ApiRequestInterface
|
|
|
* Sends a PUT request and returns the response
|
|
|
*
|
|
|
* @param string $path
|
|
|
- * @param array $parameters
|
|
|
- * @param array $options
|
|
|
+ * @param array<mixed> $parameters
|
|
|
+ * @param array<mixed> $options
|
|
|
* @return ResponseInterface
|
|
|
* @throws HttpException
|
|
|
*/
|
|
|
@@ -70,8 +70,8 @@ interface ApiRequestInterface
|
|
|
* Sends a DELETE request and returns the response
|
|
|
*
|
|
|
* @param string $path
|
|
|
- * @param array $parameters
|
|
|
- * @param array $options
|
|
|
+ * @param array<mixed> $parameters
|
|
|
+ * @param array<mixed> $options
|
|
|
* @return ResponseInterface
|
|
|
* @throws HttpException
|
|
|
*/
|
|
|
@@ -83,8 +83,8 @@ interface ApiRequestInterface
|
|
|
*
|
|
|
* @param string $method
|
|
|
* @param string $url
|
|
|
- * @param array $parameters
|
|
|
- * @param array $options
|
|
|
+ * @param array<mixed> $parameters
|
|
|
+ * @param array<mixed> $options
|
|
|
* @return ResponseInterface
|
|
|
* @throws HttpException
|
|
|
*/
|