diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 221d022bb1e37..97e4a01e2848e 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -40,6 +40,7 @@ use OC\Files\Storage\Wrapper\PermissionsMask; use OC\User\NoUserException; use OCP\Constants; +use OCP\Files\Cache\ICache; use OCP\Files\Cache\ICacheEntry; use OCP\Files\NotFoundException; use OCP\Files\Storage\IDisableEncryptionStorage; @@ -370,8 +371,8 @@ public function getItemType() { /** * @param string $path - * @param null $storage - * @return Cache + * @param IStorage|null $storage + * @return ICache */ public function getCache($path = '', $storage = null) { if ($this->cache) { diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php index 09e2b458c2fa4..ee26dd9c66bb4 100644 --- a/lib/public/Files/Storage/IStorage.php +++ b/lib/public/Files/Storage/IStorage.php @@ -434,7 +434,7 @@ public function getOwner($path); /** * @param string $path - * @param IStorage $storage + * @param IStorage|null $storage * @return ICache * @since 9.0.0 */