Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex authored May 5, 2022
2 parents b942d10 + d52c536 commit 6adf760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Upgrade Notes

## Version 4.0.7
- [BUGFIX] prevent type error in `DownloadExtension:getOptimizedFileSize`

## Version 4.0.6
- [BUGFIX] fix id for Accordion and Gallery: save class names

Expand Down
2 changes: 1 addition & 1 deletion src/ToolboxBundle/Twig/Extension/DownloadExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ public function getOptimizedFileSize($bytes, $precision)
$format = 'bytes';
}

return round($bytes, $precision) . ' ' . $format;
return round((float)$bytes, $precision) . ' ' . $format;
}
}

0 comments on commit 6adf760

Please sign in to comment.