Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(ci): Cast to int
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed May 3, 2023
commit 862a8bdd6ab1262bff47e258d935337ef89daa70
2 changes: 1 addition & 1 deletion lib/Migrator/FilesMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private function estimateFolderSize(Folder $folder, ?callable $nodeFilter = null
$size += $this->estimateFolderSize($node, $nodeFilter);
}
}
return $size;
return (int)$size;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fail on 32bits for more than 4GB (or 2GB because signed?).
Should we move all int to int|float for filesizes 32bit support?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pytal ^

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

/**
Expand Down