Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DivisionByZeroError in File::getHumanReadable() #3549

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

ziming
Copy link
Contributor

@ziming ziming commented Feb 20, 2024

After updating to the latest media library I got this Divide by Zero error

Think this commit broke it 81876c3

@ziming ziming changed the title Fix DivisionByZeroError in getHumanReadable Fix DivisionByZeroError in File::getHumanReadable() Feb 20, 2024
@freekmurze
Copy link
Member

Could you add a test for this, so we don't get regressions in the future?

@ziming
Copy link
Contributor Author

ziming commented Feb 20, 2024

@freekmurze added!

@freekmurze freekmurze merged commit 899d7f6 into spatie:main Feb 20, 2024
9 checks passed
@freekmurze
Copy link
Member

Thanks!

@ziming ziming deleted the patch-2 branch February 20, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants