@@ -27,9 +27,9 @@ class Comments extends API\Api
2727 * Get a list of a pull request comments
2828 *
2929 * @access public
30- * @param string $account The team or individual account owning the repository.
31- * @param string $repo The repository identifier.
32- * @param int $id ID of the pull request
30+ * @param string $account The team or individual account owning the repository.
31+ * @param string $repo The repository identifier.
32+ * @param int $id ID of the pull request
3333 * @return MessageInterface
3434 */
3535 public function all ($ account , $ repo , $ id )
@@ -43,15 +43,15 @@ public function all($account, $repo, $id)
4343 * Get an individual pull request comment
4444 *
4545 * @access public
46- * @param string $account The team or individual account owning the repository.
47- * @param string $repo The repository identifier.
48- * @param int $requestID An integer representing an id for the request.
49- * @param int $commentID The comment identifier.
50- * @return mixed
46+ * @param string $account The team or individual account owning the repository.
47+ * @param string $repo The repository identifier.
48+ * @param int $requestID An integer representing an id for the request.
49+ * @param int $commentID The comment identifier.
50+ * @return MessageInterface
5151 */
5252 public function get ($ account , $ repo , $ requestID , $ commentID )
5353 {
54- return $ this ->requestGet (
54+ return $ this ->getClient ()-> setApiVersion ( ' 2.0 ' )-> get (
5555 sprintf ('repositories/%s/%s/pullrequests/%d/comments/%d ' , $ account , $ repo , $ requestID , $ commentID )
5656 );
5757 }
0 commit comments