diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-05-05 17:59:57 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-05-05 17:59:57 -0700 |
commit | 4e51f5224c0536c932753eeb21264594f99dcd73 (patch) | |
tree | 0c5a2ecfb0e22ebbd6043095e6e80c07b746f166 /apps/settings/lib | |
parent | c40d1b7dbc4b0c12ff08f300abdd93dbecba0396 (diff) | |
download | nextcloud-server-4e51f5224c0536c932753eeb21264594f99dcd73.tar.gz nextcloud-server-4e51f5224c0536c932753eeb21264594f99dcd73.zip |
feat(UserMigration)!: 32-bit support
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r-- | apps/settings/lib/UserMigration/AccountMigrator.php | 4 |
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); } /** |