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

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/45777/head
Côme Chilliet 2024-06-06 10:23:03 +07:00 committed by backportbot[bot]
parent 92e053aab3
commit 9026c98243
1 changed files with 1 additions and 1 deletions

@ -369,7 +369,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;
}