From: Raphaƫl Gertz Date: Tue, 14 Oct 2025 15:02:14 +0000 (+0200) Subject: Prevent float to int conversion warning X-Git-Tag: 0.5.7~1 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/d5f78a323a5bc19a13e0fb360c52037bfc54bd09 Prevent float to int conversion warning --- diff --git a/Util/ImageUtil.php b/Util/ImageUtil.php index a556dd8..8a93c52 100644 --- a/Util/ImageUtil.php +++ b/Util/ImageUtil.php @@ -73,10 +73,10 @@ class ImageUtil { $a = $random % 10; //Set b - $b = $random / 10 % 10; + $b = intval($random / 10) % 10; //Set c - $c = $random / 100 % 10; + $c = intval($random / 100) % 10; //Set equation $equation = $a.' * '.$b.' + '.$c;