Skip to content

Commit ea22c84

Browse files
committed
Handle the additional arguments correctly from the user->repositories() method.
1 parent 7574e92 commit ea22c84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Github/Api/User.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ public function subscriptions($username)
139139
public function repositories($username, $type = 'owner', $sort = 'full_name', $direction = 'asc')
140140
{
141141
return $this->get('users/'.rawurlencode($username).'/repos', array(
142-
$type,
143-
$sort,
144-
$direction
142+
'type' => $type,
143+
'sort' => $sort,
144+
'direction' => $direction
145145
));
146146
}
147147

0 commit comments

Comments
 (0)