diff --git a/lib/private/Encryption/EncryptionWrapper.php b/lib/private/Encryption/EncryptionWrapper.php index 0082248311dec..ffc92eef90e12 100644 --- a/lib/private/Encryption/EncryptionWrapper.php +++ b/lib/private/Encryption/EncryptionWrapper.php @@ -28,7 +28,7 @@ use OC\Files\Storage\Wrapper\Encryption; use OC\Files\View; use OC\Memcache\ArrayCache; -use OCP\Encryption\Keys\IStorage; +use OCP\Encryption\Keys\IStorage as EncryptionKeysStorage; use OCP\Files\Mount\IMountPoint; use OCP\Files\Storage\IDisableEncryptionStorage; use OCP\Files\Storage\IStorage; @@ -83,7 +83,7 @@ public function wrapStorage(string $mountPoint, IStorage $storage, IMountPoint $ $mountManager = Filesystem::getMountManager(); $uid = $user ? $user->getUID() : null; $fileHelper = \OC::$server->getEncryptionFilesHelper(); - $keyStorage = \OC::$server->get(IStorage::class); + $keyStorage = \OC::$server->get(EncryptionKeysStorage::class); $util = new Util( new View(),