@@ -87,11 +87,11 @@ class Issue extends AbstractApi
8787 * - cf_x: get issues with the given value for custom field with an ID of x. (Custom field must have 'used as a filter' checked.)
8888 * - query_id : id of the previously saved query
8989 *
90- * @param array $params the additional parameters (cf available $params above)
90+ * @param array<mixed> $params the additional parameters (cf available $params above)
9191 *
9292 * @throws UnexpectedResponseException if response body could not be converted into array
9393 *
94- * @return array list of issues found
94+ * @return array<mixed> list of issues found
9595 */
9696 final public function list (array $ params = []): array
9797 {
@@ -120,9 +120,9 @@ final public function list(array $params = []): array
120120 * - cf_x: get issues with the given value for custom field with an ID of x. (Custom field must have 'used as a filter' checked.)
121121 * - query_id : id of the previously saved query
122122 *
123- * @param array $params the additional parameters (cf available $params above)
123+ * @param array<mixed> $params the additional parameters (cf available $params above)
124124 *
125- * @return array|string|false list of issues found or error message or false
125+ * @return array<mixed> |string|false list of issues found or error message or false
126126 */
127127 public function all (array $ params = [])
128128 {
@@ -150,10 +150,10 @@ public function all(array $params = [])
150150 * available $params :
151151 * include: fetch associated data (optional). Possible values: children, attachments, relations, changesets and journals
152152 *
153- * @param int $id the issue id
154- * @param array $params extra associated data
153+ * @param int $id the issue id
154+ * @param array<mixed> $params extra associated data
155155 *
156- * @return array|false|string information about the issue as array or false|string on error
156+ * @return array<mixed> |false|string information about the issue as array or false|string on error
157157 */
158158 public function show ($ id , array $ params = [])
159159 {
@@ -185,7 +185,7 @@ public function show($id, array $params = [])
185185 *
186186 * @see http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Creating-an-issue
187187 *
188- * @param array $params the new issue data
188+ * @param array<mixed> $params the new issue data
189189 *
190190 * @return string|SimpleXMLElement|false
191191 */
@@ -234,7 +234,8 @@ public function create(array $params = [])
234234 *
235235 * @see http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Updating-an-issue
236236 *
237- * @param int $id the issue number
237+ * @param int $id the issue number
238+ * @param array<mixed> $params
238239 *
239240 * @return string|SimpleXMLElement|false
240241 */
@@ -341,9 +342,11 @@ public function addNoteToIssue($id, $note, $privateNote = false)
341342 /**
342343 * Transforms literal identifiers to integer ids.
343344 *
344- * @return array
345+ * @param array<mixed> $params
346+ *
347+ * @return array<mixed>
345348 */
346- private function cleanParams (array $ params = [])
349+ private function cleanParams (array $ params = []): array
347350 {
348351 if (isset ($ params ['project ' ])) {
349352 $ projectApi = $ this ->getProjectApi ();
@@ -420,8 +423,8 @@ private function cleanParams(array $params = [])
420423 *
421424 * @see http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Updating-an-issue
422425 *
423- * @param int $id the issue number
424- * @param array $attachment ['token' => '...', 'filename' => '...', 'content_type' => '...']
426+ * @param int $id the issue number
427+ * @param array<mixed> $attachment ['token' => '...', 'filename' => '...', 'content_type' => '...']
425428 *
426429 * @return bool|string
427430 */
@@ -435,11 +438,11 @@ public function attach($id, array $attachment)
435438 *
436439 * @see http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Updating-an-issue
437440 *
438- * @param int $id the issue number
439- * @param array $attachments [
440- * ['token' => '...', 'filename' => '...', 'content_type' => '...'],
441- * ['token' => '...', 'filename' => '...', 'content_type' => '...']
442- * ]
441+ * @param int $id the issue number
442+ * @param array<mixed> $attachments [
443+ * ['token' => '...', 'filename' => '...', 'content_type' => '...'],
444+ * ['token' => '...', 'filename' => '...', 'content_type' => '...']
445+ * ]
443446 *
444447 * @return bool|string
445448 */
0 commit comments