aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2023-05-09 08:20:41 -0700
committerGitHub <noreply@github.com>2023-05-09 08:20:41 -0700
commit972b2097d03b1ce0a82b3035fd07a64d53f34a0c (patch)
tree479061fe67a317635275dcab00df10a8b5b324a0 /apps/settings
parent00480714389b56c240612651776b6dbc6ebbaf0b (diff)
parent4e51f5224c0536c932753eeb21264594f99dcd73 (diff)
downloadnextcloud-server-972b2097d03b1ce0a82b3035fd07a64d53f34a0c.tar.gz
nextcloud-server-972b2097d03b1ce0a82b3035fd07a64d53f34a0c.zip
Merge pull request #38104 from nextcloud/feat/um-32-bit
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/lib/UserMigration/AccountMigrator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/lib/UserMigration/AccountMigrator.php b/apps/settings/lib/UserMigration/AccountMigrator.php
index e8c70624224..a779ad76c8d 100644
--- a/apps/settings/lib/UserMigration/AccountMigrator.php
+++ b/apps/settings/lib/UserMigration/AccountMigrator.php
@@ -84,7 +84,7 @@ class AccountMigrator implements IMigrator, ISizeEstimationMigrator {
/**
* {@inheritDoc}
*/
- public function getEstimatedExportSize(IUser $user): int {
+ public function getEstimatedExportSize(IUser $user): int|float {
$size = 100; // 100KiB for account JSON
try {
@@ -97,7 +97,7 @@ class AccountMigrator implements IMigrator, ISizeEstimationMigrator {
// Skip avatar in size estimate on failure
}
- return (int)ceil($size);
+ return ceil($size);
}
/**