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

When use PHP 8.1 got warning: PHP Deprecated: Implicit conversion from float xx to int loses precision #118

Open
exculibar opened this issue Mar 4, 2022 · 2 comments

Comments

@exculibar
Copy link

PHP Deprecated: Implicit conversion from float 97.5 to int loses precision in /vagrant/hen/vendor/khanamiryan/qrcode-detector-decoder/lib/Common/BitMatrix.php on line 449

PHP Deprecated: Implicit conversion from float 2.0444444444444443 to int loses precision in /vagrant/hen/vendor/khanamiryan/qrcode-detector-decoder/lib/Qrcode/Decoder/DecodedBitStreamParser.php on line 239

@exculibar
Copy link
Author

According to PHP 8.1 standard I fixed it temporarily using (int) cast

@albertbrufau
Copy link

Also in vendor/khanamiryan/qrcode-detector-decoder/lib/Common/HybridBinarizer.php line 148

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