File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
33use Symfony \Component \OptionsResolver \Exception \InvalidOptionsException ;
44use Symfony \Component \OptionsResolver \Exception \UndefinedOptionsException ;
5+ use Symfony \Component \OptionsResolver \OptionsResolver ;
56
67class Projects extends AbstractApi
78{
@@ -504,9 +505,12 @@ public function removeLabel($project_id, $name)
504505 */
505506 public function fork ($ project_id , array $ parameters = [])
506507 {
507- $ resolver = $ this ->createOptionsResolver ();
508-
509- return $ this ->post ($ this ->getProjectPath ($ project_id , 'fork ' ), $ resolver ->resolve ($ parameters ));
508+ $ resolver = new OptionsResolver ();
509+ $ resolver ->setDefined ('namespace ' );
510+
511+ $ resolved = $ resolver ->resolve ($ parameters );
512+
513+ return $ this ->post ($ this ->getProjectPath ($ project_id , 'fork ' ), $ resolved );
510514 }
511515
512516 /**
You can’t perform that action at this time.
0 commit comments