Deprecation Warning: Implicit conversion from float INF to int loses precision #99
-
I'm using the library under PHP 8.1. The readme says this library has been tested up to PHP 8.0, so that may be the culprit. When I try verifying a one-time password, I get the above deprecation warning on line 130 in |
Beta Was this translation helpful? Give feedback.
Answered by
blainarm387
Jan 29, 2023
Replies: 1 comment
-
Never mind. It's a PEBKAC error! I added the wrong value for the length of the code, and when trying to verify the code it ended up trying to calculate a mod of a value WAY beyond what was expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RobThree
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind. It's a PEBKAC error! I added the wrong value for the length of the code, and when trying to verify the code it ended up trying to calculate a mod of a value WAY beyond what was expected.