Merge pull request #20 from EngineGPDev/PHP-Deprecated-Implicit-conversion-from-float-35.6-to-int-loses-precision

PHP Deprecated:  Implicit conversion from float 35.6 to int loses precision in /system/library/system.php on line 743
This commit is contained in:
Roman Kelesidis 2023-03-07 07:20:39 +07:00 committed by GitHub
commit 7e9f6d2ca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -740,7 +740,7 @@
{
$color = imagecolorallocatealpha($src, $colors[rand(0,sizeof($colors)-1)], $colors[rand(0,sizeof($colors)-1)], $colors[rand(0,sizeof($colors)-1)], rand(20,40));
$char = $chars[rand(0, sizeof($chars)-1)];
$size = rand($font_size*2.1-2, $font_size*2.1+2);
$size = rand($font_size*((int) 2.1)-2, $font_size*((int) 2.1)+2);
$x = ($i+1)*$font_size + rand(6,8);
$y = (($height*2)/3) + rand(3,7);