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 c2460ff commit cc9d6c0Copy full SHA for cc9d6c0
lib/Gitlab/Api/Projects.php
@@ -720,14 +720,16 @@ public function deployment($project_id, $deployment_id)
720
721
/**
722
* @param mixed $project_id
723
- * @param array $params
+ * @param array $parameters
724
* @return mixed
725
*/
726
- public function addShare($project_id, array $params = array())
+ public function addShare($project_id, array $parameters = [])
727
{
728
- return $this->post($this->getProjectPath($project_id, 'share'), $params);
729
- }
+ $resolver = $this->createOptionsResolver();
730
+ return $this->post($this->getProjectPath($project_id, 'share'), $resolver->resolve($parameters));
731
+ }
732
+
733
734
735
* @param int $group_id
0 commit comments