diff --git a/tests/e2e/Services/Project/KeysBase.php b/tests/e2e/Services/Project/KeysBase.php index 04310a913f..fda5ef377f 100644 --- a/tests/e2e/Services/Project/KeysBase.php +++ b/tests/e2e/Services/Project/KeysBase.php @@ -698,20 +698,17 @@ trait KeysBase /** * @param array|null $scopes */ - protected function createKey(string $keyId, ?string $name, ?array $scopes = null, ?string $expire = null, bool $authenticated = true, bool $sendScopes = true): mixed + protected function createKey(string $keyId, ?string $name, ?array $scopes = null, ?string $expire = null, bool $authenticated = true): mixed { $params = [ 'keyId' => $keyId, + 'scopes' => $scopes, ]; if ($name !== null) { $params['name'] = $name; } - if ($sendScopes) { - $params['scopes'] = $scopes; - } - if ($expire !== null) { $params['expire'] = $expire; }