@@ -108,7 +108,7 @@ public function lastCallFailed()
108
108
* @param string $path
109
109
* @param bool $decodeIfJson
110
110
*
111
- * @return string|array|SimpleXMLElement|false
111
+ * @return string|array<mixed> |SimpleXMLElement|false
112
112
*/
113
113
protected function get ($ path , $ decodeIfJson = true )
114
114
{
@@ -245,7 +245,10 @@ protected function isNotNull($var)
245
245
}
246
246
247
247
/**
248
- * @return array
248
+ * @param array<mixed> $defaults
249
+ * @param array<mixed> $params
250
+ *
251
+ * @return array<mixed>
249
252
*/
250
253
protected function sanitizeParams (array $ defaults , array $ params )
251
254
{
@@ -262,10 +265,10 @@ protected function sanitizeParams(array $defaults, array $params)
262
265
* @deprecated v2.2.0 Use `retrieveData()` instead
263
266
* @see AbstractApi::retrieveData()
264
267
*
265
- * @param string $endpoint API end point
266
- * @param array $params optional parameters to be passed to the api (offset, limit, ...)
268
+ * @param string $endpoint API end point
269
+ * @param array<mixed> $params optional parameters to be passed to the api (offset, limit, ...)
267
270
*
268
- * @return array|string|false elements found or error message or false
271
+ * @return array<mixed> |string|false elements found or error message or false
269
272
*/
270
273
protected function retrieveAll ($ endpoint , array $ params = [])
271
274
{
@@ -288,12 +291,12 @@ protected function retrieveAll($endpoint, array $params = [])
288
291
* Retrieves as many elements as you want of a given endpoint (even if the
289
292
* total number of elements is greater than 100).
290
293
*
291
- * @param string $endpoint API end point
292
- * @param array $params optional query parameters to be passed to the api (offset, limit, ...)
294
+ * @param string $endpoint API end point
295
+ * @param array<mixed> $params optional query parameters to be passed to the api (offset, limit, ...)
293
296
*
294
297
* @throws SerializerException if response body could not be converted into array
295
298
*
296
- * @return array elements found
299
+ * @return array<mixed> elements found
297
300
*/
298
301
protected function retrieveData (string $ endpoint , array $ params = []): array
299
302
{
@@ -364,7 +367,7 @@ protected function retrieveData(string $endpoint, array $params = []): array
364
367
* @see \Redmine\Serializer\XmlSerializer::createFromArray()
365
368
*
366
369
* @param SimpleXMLElement $xml XML Element the custom fields are attached to
367
- * @param array $fields array of fields to attach, each field needs name, id and value set
370
+ * @param array<mixed> $fields array of fields to attach, each field needs name, id and value set
368
371
*
369
372
* @return SimpleXMLElement $xml
370
373
*
@@ -411,6 +414,8 @@ protected function attachCustomFieldXML(SimpleXMLElement $xml, array $fields)
411
414
* returns the last response body as array.
412
415
*
413
416
* @throws SerializerException if response body could not be converted into array
417
+ *
418
+ * @return array<mixed>
414
419
*/
415
420
private function getResponseAsArray (Response $ response ): array
416
421
{
@@ -435,7 +440,7 @@ private function getResponseAsArray(Response $response): array
435
440
private function handleClient (Client $ client ): HttpClient
436
441
{
437
442
return new class ($ client ) implements HttpClient {
438
- private $ client ;
443
+ private Client $ client ;
439
444
440
445
public function __construct (Client $ client )
441
446
{
0 commit comments