Skip to content

Commit cc9d6c0

Browse files
Artistanm1guelpf
authored andcommitted
Options Resolver
added options resolver...
1 parent c2460ff commit cc9d6c0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,14 +720,16 @@ public function deployment($project_id, $deployment_id)
720720

721721
/**
722722
* @param mixed $project_id
723-
* @param array $params
723+
* @param array $parameters
724724
* @return mixed
725725
*/
726-
public function addShare($project_id, array $params = array())
726+
public function addShare($project_id, array $parameters = [])
727727
{
728-
return $this->post($this->getProjectPath($project_id, 'share'), $params);
729-
}
728+
$resolver = $this->createOptionsResolver();
730729

730+
return $this->post($this->getProjectPath($project_id, 'share'), $resolver->resolve($parameters));
731+
}
732+
731733
/**
732734
* @param mixed $project_id
733735
* @param int $group_id

0 commit comments

Comments
 (0)