From 66a0c69aa57843ebaa8bf92748c915129d264c02 Mon Sep 17 00:00:00 2001 From: Ilia Kondrashov Date: Wed, 19 Jun 2024 21:10:26 +0200 Subject: [PATCH] add params to teams to use paginator --- lib/Github/Api/Organization/Teams.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Github/Api/Organization/Teams.php b/lib/Github/Api/Organization/Teams.php index 20bb2791a7a..31a86867748 100644 --- a/lib/Github/Api/Organization/Teams.php +++ b/lib/Github/Api/Organization/Teams.php @@ -12,9 +12,9 @@ */ class Teams extends AbstractApi { - public function all($organization) + public function all($organization, array $params = []) { - return $this->get('/orgs/'.rawurlencode($organization).'/teams'); + return $this->get('/orgs/'.rawurlencode($organization).'/teams', $params); } public function create($organization, array $params)