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

Implicit conversion from float #154

Open
rlzdesenv opened this issue May 31, 2022 · 3 comments
Open

Implicit conversion from float #154

rlzdesenv opened this issue May 31, 2022 · 3 comments

Comments

@rlzdesenv
Copy link

I've been getting a lot of alerts like

Implicit conversion from float 23.5 to int loses precision in /var/www/vendor/milon/barcode/src/Milon/Barcode/QRcode.php on line 878

@lehnen
Copy link

lehnen commented Mar 1, 2023

@rlzdesenv Since this repo is not realy up to date, a quick workarroud is this:

Line 870:
$col = (int)($this->count / $this->blocks);

Line 877:
$col = (int)(($this->count - $this->dataLength) / $this->blocks);

@emmadonjo
Copy link

I'm having the log file loaded up with this error on lines 874 and 878.

@lehnen, directly updating this might be rendered useless when an update or a new installation command is run. Can a pull request be made on this?

@Kaczorex
Copy link

I got the same issue. When it will be fixed? 2 years delay is nice. When can we expect a fix?

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

4 participants