Gregwar / Captcha

PHP Captcha library
MIT License
1.73k stars 290 forks source link

explicitly cast to int #98

Closed ridho-laksono-lamudi closed 1 year ago

ridho-laksono-lamudi commented 2 years ago

there was error caused by implicit conversion from float to int in php 8.1 the easiest fix will be to explicitly cast the value to int as what it has been doing. the issue is just, pre PHP 8.1 it will not complain when it's doing this, but since php 8.1 it will start throwing deprecation error.

polakjakub commented 2 years ago

IMHO better fix #101

Gregwar commented 1 year ago

I merged #101 Thanks for contributing