@@ -1165,7 +1165,7 @@ public function deleteAllMergedBranches(int|string $project_id): mixed
11651165 */
11661166 public function projectAccessTokens (int |string $ project_id , array $ parameters = []): mixed
11671167 {
1168- $ resolver = $ this -> createOptionsResolver ();
1168+ $ resolver = new OptionsResolver ();
11691169 $ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ): string {
11701170 return $ value ->format ('c ' );
11711171 };
@@ -1305,11 +1305,9 @@ public function updateJobTokenScope(int|string $project_id, bool $enabled): mixe
13051305 return $ this ->patch ($ this ->getProjectPath ($ project_id , 'job_token_scope ' ), ['enabled ' => $ enabled ]);
13061306 }
13071307
1308- public function jobTokenScopeAllowlistProjects (int |string $ project_id, array $ parameters = [] ): mixed
1308+ public function jobTokenScopeAllowlistProjects (int |string $ project_id ): mixed
13091309 {
1310- $ resolver = $ this ->createOptionsResolver ();
1311-
1312- return $ this ->get ($ this ->getProjectPath ($ project_id , 'job_token_scope/allowlist ' ), $ resolver ->resolve ($ parameters ));
1310+ return $ this ->get ($ this ->getProjectPath ($ project_id , 'job_token_scope/allowlist ' ));
13131311 }
13141312
13151313 public function addJobTokenScopeAllowlistProject (int |string $ project_id , int $ target_project_id ): mixed
@@ -1325,11 +1323,9 @@ public function removeJobTokenScopeAllowlistProject(int|string $project_id, int
13251323 return $ this ->delete ($ this ->getProjectPath ($ project_id , 'job_token_scope/allowlist/ ' .self ::encodePath ($ target_project_id )));
13261324 }
13271325
1328- public function jobTokenScopeAllowlistGroups (int |string $ project_id, array $ parameters = [] ): mixed
1326+ public function jobTokenScopeAllowlistGroups (int |string $ project_id ): mixed
13291327 {
1330- $ resolver = $ this ->createOptionsResolver ();
1331-
1332- return $ this ->get ($ this ->getProjectPath ($ project_id , 'job_token_scope/groups_allowlist ' ), $ resolver ->resolve ($ parameters ));
1328+ return $ this ->get ($ this ->getProjectPath ($ project_id , 'job_token_scope/groups_allowlist ' ));
13331329 }
13341330
13351331 public function addJobTokenScopeAllowlistGroup (int |string $ project_id , int $ target_group_id ): mixed
@@ -1354,7 +1350,7 @@ public function removeJobTokenScopeAllowlistGroup(int|string $project_id, int $t
13541350 */
13551351 public function registryRepositories (int |string $ project_id , array $ parameters = []): mixed
13561352 {
1357- $ resolver = $ this -> createOptionsResolver ();
1353+ $ resolver = new OptionsResolver ();
13581354 $ booleanNormalizer = function (Options $ resolver , $ value ): string {
13591355 return $ value ? 'true ' : 'false ' ;
13601356 };
0 commit comments