Fix failing tests

This commit is contained in:
Matej Bačo
2026-04-08 10:34:18 +02:00
parent a9fd82e406
commit b8d65326e6
+2 -5
View File
@@ -698,20 +698,17 @@ trait KeysBase
/**
* @param array<string>|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;
}