Skip to content

Commit 1f31aa1

Browse files
authored
minor #1060 Updates ReviewRequest Create method to return type Array (ejntaylor)
This PR was merged into the 3.4.x-dev branch. Discussion ---------- This query returns an array and not a string. I have updated to reflect this. Specific docs link added in docblock too. Commits ------- 8ab22f6 Updates ReviewRequest Create with type Array
2 parents 7f28317 + 8ab22f6 commit 1f31aa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/PullRequest/ReviewRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ public function all($username, $repository, $pullRequest, array $params = [])
3939
}
4040

4141
/**
42-
* @link https://developer.github.com/v3/pulls/review_requests/#create-a-review-request
42+
* @link https://docs.github.com/en/rest/reference/pulls#request-reviewers-for-a-pull-request
4343
*
4444
* @param string $username
4545
* @param string $repository
4646
* @param int $pullRequest
4747
* @param array $reviewers
4848
* @param array $teamReviewers
4949
*
50-
* @return string
50+
* @return array
5151
*/
5252
public function create($username, $repository, $pullRequest, array $reviewers = [], array $teamReviewers = [])
5353
{

0 commit comments

Comments
 (0)