Skip to content

Commit 9682c45

Browse files
authored
Update Projects.php
1 parent 8f1454d commit 9682c45

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,14 +502,10 @@ public function removeLabel($project_id, $name)
502502
* )
503503
* @return mixed
504504
*/
505-
public function fork($project_id, array $params = array())
505+
public function fork($project_id, array $parameters = array())
506506
{
507507
$resolver = $this->createOptionsResolver();
508-
$resolver->setDefined('namespace');
509-
510-
$resolved = $resolver->resolve($params);
511-
512-
return $this->post($this->getProjectPath($project_id, 'fork'), $resolved);
508+
return $this->post($this->getProjectPath($project_id, 'fork'), $resolver->resolve($parameters));
513509
}
514510

515511
/**

0 commit comments

Comments
 (0)