Skip to content

Commit d5d9aff

Browse files
committed
Add typings to the mergeUpstream method
1 parent 0de3d78 commit d5d9aff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/Github/Api/Repo.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,9 @@ public function branches($username, $repository, $branch = null, array $paramete
540540
*
541541
* @link https://docs.github.com/en/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository
542542
*
543-
* @param string $username
544-
* @param string $repository
545-
* @param string|null $branchName
546-
*
547543
* @return array|string
548544
*/
549-
public function mergeUpstream($username, $repository, $branchName)
545+
public function mergeUpstream(string $username, string $repository, string $branchName)
550546
{
551547
return $this->post(
552548
'/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/merge-upstream',

0 commit comments

Comments
 (0)