Skip to content

Commit d48b53b

Browse files
morozovNyholm
authored andcommitted
Added string as a possible return type for methods (#635)
1 parent cacf6f3 commit d48b53b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Github/Api/PullRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function all($username, $repository, array $params = array())
7777
* @param string $repository the repository
7878
* @param string $id the ID of the pull request for which details are retrieved
7979
*
80-
* @return array array of pull requests for the project
80+
* @return array|string pull request details
8181
*/
8282
public function show($username, $repository, $id)
8383
{

lib/Github/Api/Repository/Contents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function readme($username, $repository, $reference = null)
6464
* @param null|string $path path to file or directory
6565
* @param null|string $reference reference to a branch or commit
6666
*
67-
* @return array information for file | information for each item in directory
67+
* @return array|string information for file | information for each item in directory
6868
*/
6969
public function show($username, $repository, $path = null, $reference = null)
7070
{

0 commit comments

Comments
 (0)