Skip to content

Commit

Permalink
minor #1060 Updates ReviewRequest Create method to return type Array …
Browse files Browse the repository at this point in the history
…(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
  • Loading branch information
acrobat authored Apr 13, 2022
2 parents 7f28317 + 8ab22f6 commit 1f31aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Github/Api/PullRequest/ReviewRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ public function all($username, $repository, $pullRequest, array $params = [])
}

/**
* @link https://developer.github.com/v3/pulls/review_requests/#create-a-review-request
* @link https://docs.github.com/en/rest/reference/pulls#request-reviewers-for-a-pull-request
*
* @param string $username
* @param string $repository
* @param int $pullRequest
* @param array $reviewers
* @param array $teamReviewers
*
* @return string
* @return array
*/
public function create($username, $repository, $pullRequest, array $reviewers = [], array $teamReviewers = [])
{
Expand Down

0 comments on commit 1f31aa1

Please sign in to comment.