From 2013bbaaea17c9e4d0fb1e32d59f13facd583fe0 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 22 May 2025 14:34:39 +0200 Subject: chore: migrate away from deprecated OC_Helper to IUserFolder Signed-off-by: Ferdinand Thiessen --- lib/private/legacy/OC_Helper.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/private/legacy/OC_Helper.php') diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php index 4388f775623..2d12e2df510 100644 --- a/lib/private/legacy/OC_Helper.php +++ b/lib/private/legacy/OC_Helper.php @@ -219,6 +219,7 @@ class OC_Helper { * @psalm-suppress LessSpecificReturnStatement Legacy code outputs weird types - manually validated that they are correct * @return StorageInfo * @throws \OCP\Files\NotFoundException + * @deprecated 32.0.0 use \OCP\Files\IUserFolder::getUserQuota */ public static function getStorageInfo($path, $rootInfo = null, $includeMountPoints = true, $useCache = true) { if (!self::$cacheFactory) { @@ -281,7 +282,7 @@ class OC_Helper { // TODO: need a better way to get total space from storage if ($sourceStorage->instanceOfStorage('\OC\Files\Storage\Wrapper\Quota')) { - /** @var \OC\Files\Storage\Wrapper\Quota $storage */ + /** @var \OC\Files\Storage\Wrapper\Quota $sourceStorage */ $quota = $sourceStorage->getQuota(); } try { @@ -403,6 +404,9 @@ class OC_Helper { ]; } + /** + * @deprecated 32.0.0 + */ public static function clearStorageInfo(string $absolutePath): void { /** @var ICacheFactory $cacheFactory */ $cacheFactory = \OC::$server->get(ICacheFactory::class); -- cgit v1.2.3