fix: add default value for new flag `$useDecryptAll` on getFileKey

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/45669/head
Côme Chilliet 2 years ago
parent 95cd524771
commit 885604ce2d
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 2
      apps/encryption/lib/KeyManager.php

@ -345,7 +345,7 @@ class KeyManager {
/**
* @param ?bool $useLegacyFileKey null means try both
*/
public function getFileKey(string $path, ?string $uid, ?bool $useLegacyFileKey, bool $useDecryptAll): string {
public function getFileKey(string $path, ?string $uid, ?bool $useLegacyFileKey, bool $useDecryptAll = false): string {
if ($uid === '') {
$uid = null;
}

Loading…
Cancel
Save