@@ -108,7 +108,7 @@ public function lastCallFailed()
108108 * @param string $path
109109 * @param bool $decodeIfJson
110110 *
111- * @return string|array|SimpleXMLElement|false
111+ * @return string|array<mixed> |SimpleXMLElement|false
112112 */
113113 protected function get ($ path , $ decodeIfJson = true )
114114 {
@@ -245,7 +245,10 @@ protected function isNotNull($var)
245245 }
246246
247247 /**
248- * @return array
248+ * @param array<mixed> $defaults
249+ * @param array<mixed> $params
250+ *
251+ * @return array<mixed>
249252 */
250253 protected function sanitizeParams (array $ defaults , array $ params )
251254 {
@@ -262,10 +265,10 @@ protected function sanitizeParams(array $defaults, array $params)
262265 * @deprecated v2.2.0 Use `retrieveData()` instead
263266 * @see AbstractApi::retrieveData()
264267 *
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, ...)
267270 *
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
269272 */
270273 protected function retrieveAll ($ endpoint , array $ params = [])
271274 {
@@ -288,12 +291,12 @@ protected function retrieveAll($endpoint, array $params = [])
288291 * Retrieves as many elements as you want of a given endpoint (even if the
289292 * total number of elements is greater than 100).
290293 *
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, ...)
293296 *
294297 * @throws SerializerException if response body could not be converted into array
295298 *
296- * @return array elements found
299+ * @return array<mixed> elements found
297300 */
298301 protected function retrieveData (string $ endpoint , array $ params = []): array
299302 {
@@ -364,7 +367,7 @@ protected function retrieveData(string $endpoint, array $params = []): array
364367 * @see \Redmine\Serializer\XmlSerializer::createFromArray()
365368 *
366369 * @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
368371 *
369372 * @return SimpleXMLElement $xml
370373 *
@@ -411,6 +414,8 @@ protected function attachCustomFieldXML(SimpleXMLElement $xml, array $fields)
411414 * returns the last response body as array.
412415 *
413416 * @throws SerializerException if response body could not be converted into array
417+ *
418+ * @return array<mixed>
414419 */
415420 private function getResponseAsArray (Response $ response ): array
416421 {
@@ -435,7 +440,7 @@ private function getResponseAsArray(Response $response): array
435440 private function handleClient (Client $ client ): HttpClient
436441 {
437442 return new class ($ client ) implements HttpClient {
438- private $ client ;
443+ private Client $ client ;
439444
440445 public function __construct (Client $ client )
441446 {
0 commit comments