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 9c5c2a3 commit 62b4684Copy full SHA for 62b4684
lib/Gitlab/Api/Projects.php
@@ -556,11 +556,15 @@ public function removeService($project_id, $service_name)
556
557
/**
558
* @param int $project_id
559
+ * @param array $parameters
560
+ *
561
* @return mixed
562
*/
- public function variables($project_id)
563
+ public function variables($project_id, array $parameters = [])
564
{
- return $this->get($this->getProjectPath($project_id, 'variables'));
565
+ $resolver = $this->createOptionsResolver();
566
+
567
+ return $this->get($this->getProjectPath($project_id, 'variables'), $resolver->resolve($parameters));
568
}
569
570
0 commit comments