File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use Symfony \Component \OptionsResolver \Exception \InvalidOptionsException ;
4
4
use Symfony \Component \OptionsResolver \Exception \UndefinedOptionsException ;
5
+ use Symfony \Component \OptionsResolver \OptionsResolver ;
5
6
6
7
class Projects extends AbstractApi
7
8
{
@@ -504,9 +505,12 @@ public function removeLabel($project_id, $name)
504
505
*/
505
506
public function fork ($ project_id , array $ parameters = [])
506
507
{
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 );
510
514
}
511
515
512
516
/**
You can’t perform that action at this time.
0 commit comments