We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c9c49 commit 76f77f6Copy full SHA for 76f77f6
lib/Gitlab/Api/Projects.php
@@ -299,16 +299,15 @@ public function removeMember($project_id, $user_id)
299
300
/**
301
* @param int $project_id
302
- * @param int $page
303
- * @param int $per_page
+ * @param array $parameters
+ *
304
* @return mixed
305
*/
306
- public function hooks($project_id, $page = 1, $per_page = self::PER_PAGE)
+ public function hooks($project_id, array $parameters = [])
307
{
308
- return $this->get($this->getProjectPath($project_id, 'hooks'), array(
309
- 'page' => $page,
310
- 'per_page' => $per_page
311
- ));
+ $resolver = $this->createOptionsResolver();
+
+ return $this->get($this->getProjectPath($project_id, 'hooks'), $resolver->resolve($parameters));
312
}
313
314
0 commit comments