Skip to content

Commit fce4fdd

Browse files
Fix comment method not returning multiple comments (#432)
1 parent e785290 commit fce4fdd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Issue/IssueService.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public function getComment($issueIdOrKey, $id, array $paramArray = [])
319319
* @throws JiraException
320320
* @throws \JsonMapper_Exception
321321
*
322-
* @return Comment Comment class
322+
* @return Comments Comments class
323323
*/
324324
public function getComments($issueIdOrKey, array $paramArray = [])
325325
{
@@ -328,12 +328,12 @@ public function getComments($issueIdOrKey, array $paramArray = [])
328328
$ret = $this->exec($this->uri.'/'.$issueIdOrKey.'/comment'.$this->toHttpQueryParameter($paramArray), null);
329329

330330
$this->log->debug('get comments result='.var_export($ret, true));
331-
$comment = $this->json_mapper->map(
331+
$comments = $this->json_mapper->map(
332332
json_decode($ret),
333-
new Comment()
333+
new Comments()
334334
);
335335

336-
return $comment;
336+
return $comments;
337337
}
338338

339339
/**

0 commit comments

Comments
 (0)