fix: Fix crash in files_version about uninitialized property

Fix "Typed property OC\\Files\\Cache\\Cache::$storage must not be accessed before initialization"

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-10-14 16:56:07 +02:00
parent 4ec76cf834
commit ad9574970a
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -53,6 +53,15 @@ class CacheWrapper extends Cache {
}
}
protected function shouldEncrypt(string $targetPath): bool {
$cache = $this->getCache();
if ($cache instanceof Cache) {
return $cache->shouldEncrypt($targetPath);
} else {
return false;
}
}
/**
* Make it easy for wrappers to modify every returned cache entry
*