antonioribeiro / google2fa

A One Time Password Authentication package, compatible with Google Authenticator.
MIT License
1.83k stars 199 forks source link

Update to support PHP 8.1 #178

Closed victormac3000 closed 2 years ago

victormac3000 commented 2 years ago

Added string cast to the hash_equals function in order to work for the latest PHP Version.

antonioribeiro commented 2 years ago

Hey @victormac3000 , did you have any problems running it on PHP 8.1? Tests are passing, would you take some time to write a test that would fail on PHP 8.1 if your PR was not merged, please?

I'm merging it anyways because I believe something happened and yes hash_equals is supposed to accept only strings.