aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-06-06 10:23:03 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-06-11 08:36:36 +0000
commit9333e6d7b730f35645d017fbe8e9f406981d6e2a (patch)
tree7f977465cc0388183a69d4ee98ac3daa52aa3025
parent5d15fc738ca51d8badf9e8abbe70c98fe83cbd5b (diff)
downloadnextcloud-server-9333e6d7b730f35645d017fbe8e9f406981d6e2a.tar.gz
nextcloud-server-9333e6d7b730f35645d017fbe8e9f406981d6e2a.zip
fix: add default value for new flag `$useDecryptAll` on getFileKey
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/encryption/lib/KeyManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php
index 87daccc1868..f46faa8a0a1 100644
--- a/apps/encryption/lib/KeyManager.php
+++ b/apps/encryption/lib/KeyManager.php
@@ -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;
}