File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ See [documentation](doc/customize.md) to know how to customize the client timeou
23
23
* The ` visibility_level ` parameter have been removed from ` create ` method. Use ` visibility ` instead.
24
24
* The ` all ` method now take a single argument which is an associative array of query string parameters.
25
25
* The ` search ` method have been removed. Use ` all ` method instead.
26
+ * The ` members ` method second and subsequent arguments have been replaced by a single associative array of query string parameters.
26
27
27
28
## ` Gitlab\Api\Issues ` changes
28
29
Original file line number Diff line number Diff line change @@ -107,17 +107,20 @@ public function transfer($group_id, $project_id)
107
107
}
108
108
109
109
/**
110
- * @param int $id
111
- * @param int $page
112
- * @param int $per_page
110
+ * @param int $id
111
+ * @param array $parameters (
112
+ *
113
+ * @var string $query A query string to search for members.
114
+ * )
115
+ *
113
116
* @return mixed
114
117
*/
115
- public function members ($ id , $ page = 1 , $ per_page = self :: PER_PAGE )
118
+ public function members ($ id , array $ parameters = [] )
116
119
{
117
- return $ this ->get ( ' groups/ ' . $ this -> encodePath ( $ id ). ' /members ' , array (
118
- ' page ' => $ page ,
119
- ' per_page ' => $ per_page
120
- ));
120
+ $ resolver = $ this ->createOptionsResolver ();
121
+ $ resolver -> setDefined ( ' query ' );
122
+
123
+ return $ this -> get ( ' groups/ ' . $ this -> encodePath ( $ id ). ' /members ' , $ resolver -> resolve ( $ parameters ));
121
124
}
122
125
123
126
/**
You can’t perform that action at this time.
0 commit comments