Skip to content

Commit 13003af

Browse files
brandonkellyacrobat
authored andcommitted
Fixed the @return type for Repo::readme() (#627)
* Fixed the @return type for Repo::readme() * readme() can return an array if $format = v3+json
1 parent 63189a0 commit 13003af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Repo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ public function remove($username, $repository)
256256
*
257257
* @param string $username the user who owns the repository
258258
* @param string $repository the name of the repository
259-
* @param string $format one of formats: "raw" or "html"
259+
* @param string $format one of formats: "raw", "html", or "v3+json"
260260
*
261-
* @return array the readme content
261+
* @return string|array the readme content
262262
*/
263263
public function readme($username, $repository, $format = 'raw')
264264
{

0 commit comments

Comments
 (0)