Skip to content

Commit d78c57f

Browse files
committed
Fix variable name
1 parent 806455c commit d78c57f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Organization/Members.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public function check($organization, $username)
4444
return $this->get('orgs/'.rawurlencode($organization).'/public_members/'.rawurlencode($username));
4545
}
4646

47-
public function addMember($team, $username)
47+
public function addMember($organization, $username)
4848
{
49-
return $this->put('orgs/'.rawurlencode($team).'/memberships/'.rawurlencode($username));
49+
return $this->put('orgs/'.rawurlencode($organization).'/memberships/'.rawurlencode($username));
5050
}
5151

5252
public function publicize($organization, $username)

0 commit comments

Comments
 (0)