Skip to content

Commit 62076e5

Browse files
omarlopesinom1guelpf
authored andcommitted
Add comments to Projects issues method
1 parent 1b7873f commit 62076e5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,19 @@ public function hook($project_id, $hook_id)
359359
}
360360

361361
/**
362+
* Get project issues.
363+
*
364+
* See https://docs.gitlab.com/ee/api/issues.html#list-project-issues for more info.
365+
*
362366
* @param int $project_id
363-
* @return mixed
367+
* Project id.
368+
* @param array $parameters
369+
* Url parameters. For example: issue state (opened / closed).
370+
*
371+
* @return array
372+
* List of project issues.
364373
*/
365-
public function issues($project_id, $parameters = array())
374+
public function issues($project_id, array $parameters = [])
366375
{
367376
return $this->get($this->getProjectPath($project_id, 'issues'), $parameters);
368377
}

0 commit comments

Comments
 (0)