diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php index b6a0d2b6ea9ab..9fd6c7655afd5 100644 --- a/apps/encryption/lib/KeyManager.php +++ b/apps/encryption/lib/KeyManager.php @@ -345,7 +345,7 @@ public function getPrivateKey($userId) { /** * @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; }