diff --git a/composer.lock b/composer.lock index f59c62c5..9aa50cf0 100644 --- a/composer.lock +++ b/composer.lock @@ -1476,12 +1476,12 @@ "source": { "type": "git", "url": "https://github.com/nextcloud-deps/ocp.git", - "reference": "1787ce259afa7296eec0c8b037976987eba134ac" + "reference": "baf13f74c7bad9e134b8b95fbea945d5bee1d98d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/1787ce259afa7296eec0c8b037976987eba134ac", - "reference": "1787ce259afa7296eec0c8b037976987eba134ac", + "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/baf13f74c7bad9e134b8b95fbea945d5bee1d98d", + "reference": "baf13f74c7bad9e134b8b95fbea945d5bee1d98d", "shasum": "" }, "require": { @@ -1513,7 +1513,7 @@ "issues": "https://github.com/nextcloud-deps/ocp/issues", "source": "https://github.com/nextcloud-deps/ocp/tree/master" }, - "time": "2023-05-04T00:35:11+00:00" + "time": "2023-05-13T00:33:05+00:00" }, { "name": "nikic/php-parser", diff --git a/lib/Service/UserMigrationService.php b/lib/Service/UserMigrationService.php index 6c5ce7f1..a3193bdd 100644 --- a/lib/Service/UserMigrationService.php +++ b/lib/Service/UserMigrationService.php @@ -124,6 +124,7 @@ public function estimateExportSize(IUser $user, ?array $filteredMigratorList = n } $cacheKey = $user->getUID() . '::' . $migrator->getId(); if ($this->internalCache->hasKey($cacheKey)) { + /** @var int|float $size */ $size += $this->internalCache->get($cacheKey); continue; } @@ -134,6 +135,7 @@ public function estimateExportSize(IUser $user, ?array $filteredMigratorList = n throw new UserMigrationException('Could not estimate export size for ' . $migrator->getDisplayName(), 0, $e); } $this->internalCache->set($cacheKey, $migratorSize); + /** @var int|float $size */ $size += $migratorSize; } }