Skip to content

Commit

Permalink
fix(progressBar): fix a deprecated implicit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
acheype committed Nov 7, 2023
1 parent 3cc87a6 commit e338927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/progressBar/libs/progressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

imagefilledrectangle($image, 0, 0, $width-1, $height-1, $noir);
imagefilledrectangle($image, 1, 1, $width-2, $height-2, $blanc);
imagefilledrectangle($image, 1, 1, ($width-2) * $percent / 100, $height-2, $color);
imagefilledrectangle($image, 1, 1, intval(($width-2) * $percent / 100), $height-2, $color);


imagepng($image);
Expand Down

0 comments on commit e338927

Please sign in to comment.