mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix failing tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user