On certain systems, when using PHP 8.2, the following warning will appear:
Deprecated: Implicit conversion from float 30.5 to int loses precision in (path)/vendor/gregwar/captcha/src/Gregwar/Captcha/CaptchaBuilder.php on line 365
When setting the header to Content-type: image/jpeg, the errors will not appear, but the image will be blank.
My proposed solution is to use intval to convert the floats to integers, thus solving this issue.
Thank you!
On certain systems, when using PHP 8.2, the following warning will appear:
When setting the header to
Content-type: image/jpeg
, the errors will not appear, but the image will be blank. My proposed solution is to useintval
to convert the floats to integers, thus solving this issue. Thank you!