Skip to content

Commit 812f2ce

Browse files
Artistanm1guelpf
authored andcommitted
fix members request with empty query.
members request does not require query and is actually broken right now if you provide an empty query https://gitlab.com/gitlab-com/support-forum/issues/2878
1 parent f2464e2 commit 812f2ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,8 @@ public function cancelPipeline($project_id, $pipeline_id)
247247
*/
248248
public function members($project_id, $username_query = null)
249249
{
250-
return $this->get($this->getProjectPath($project_id, 'members'), array(
251-
'query' => $username_query
252-
));
250+
$params = $username_query??[];
251+
return $this->get($this->getProjectPath($project_id, 'members'), $params);
253252
}
254253

255254
/**

0 commit comments

Comments
 (0)