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

PHP Warning: A non-numeric value encountered in in MoneyViewHelper Line 83 and division by zero, if currency['cu_sub_divisor'] is not greater than 0 #149

Open
AlenaAzizSafi opened this issue Apr 5, 2019 · 0 comments
Milestone

Comments

@AlenaAzizSafi
Copy link

In PHP 7.1, it is nom longer allowed to divide a string by a number.
four / 1 return 1, but we get a PHP Warning. Therefore if a currency has no cu_sub_divisor, we have a division by zero.

@AlenaAzizSafi AlenaAzizSafi reopened this Apr 5, 2019
@sfsmfc sfsmfc added this to the 8LTS milestone Apr 23, 2019
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

No branches or pull requests

2 participants