diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-06-06 10:23:03 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-06-06 10:23:03 +0200 |
commit | 885604ce2de36ea85854db645694eb797ab7785c (patch) | |
tree | 21d6b08e48172024965347a92792668984b202aa /apps/encryption/lib | |
parent | 95cd524771e9982464b070e2c55d04878319fd5b (diff) | |
download | nextcloud-server-885604ce2de36ea85854db645694eb797ab7785c.tar.gz nextcloud-server-885604ce2de36ea85854db645694eb797ab7785c.zip |
fix: add default value for new flag `$useDecryptAll` on getFileKey
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r-- | apps/encryption/lib/KeyManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php index b6a0d2b6ea9..9fd6c7655af 100644 --- a/apps/encryption/lib/KeyManager.php +++ b/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; } |