Skip to content

Commit 7dce347

Browse files
Artistanm1guelpf
authored andcommitted
php 5.6 compatible...
damn coalesce :)
1 parent 812f2ce commit 7dce347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function cancelPipeline($project_id, $pipeline_id)
247247
*/
248248
public function members($project_id, $username_query = null)
249249
{
250-
$params = $username_query??[];
250+
$params = !empty($username_query)?$username_query:[];
251251
return $this->get($this->getProjectPath($project_id, 'members'), $params);
252252
}
253253

0 commit comments

Comments
 (0)