From d5f78a323a5bc19a13e0fb360c52037bfc54bd09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 14 Oct 2025 17:02:14 +0200 Subject: [PATCH] Prevent float to int conversion warning --- Util/ImageUtil.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.41.3