-
-
Notifications
You must be signed in to change notification settings - Fork 74
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 ... to int loses precision (PHP 8.1) #59
Comments
I'm not fully up to date with the recent changes in PHP versions. Would casting everything explicitly to Would you be up for making a PR? |
@jenssegers I'm not sure, some quick Googling seems to indicate that explicit casting or conversion is needed, but I wouldn't want to make the call and possibly break things here :) |
maybe the real reason is that you tried to encode a number bigger than maxid ? actually, you should not do that, otherwise you won't be able to decode from encoded value. |
Error with PHP 8.1.11 on this line
optimus/src/Optimus.php
Line 68 in a062ac0
The text was updated successfully, but these errors were encountered: