Skip to content

Commit c520754

Browse files
committed
Add API unit test. Remove perPage and page parameters for events method
1 parent 5534e25 commit c520754

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/Github/Api/User.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,10 @@ public function publicEvents($username)
240240
*
241241
* @link https://docs.github.com/en/rest/reference/activity#list-events-for-the-authenticated-user
242242
*
243-
* @param string $username
244-
* @param int $page the page number of the paginated result set
245-
* @param int $perPage the number of results per page
246-
*
247243
* @return array
248244
*/
249-
public function events($username, $page = 1, $perPage = 30)
245+
public function events(string $username)
250246
{
251-
return $this->get('/users/'.rawurlencode($username).'/events', [
252-
'page' => $page,
253-
'per_page' => $perPage,
254-
]);
247+
return $this->get('/users/'.rawurlencode($username).'/events');
255248
}
256249
}

0 commit comments

Comments
 (0)