Merge "Tests: Explicit cast to int in RandomImageGenerator test (php8 warnings)"

This commit is contained in:
jenkins-bot 2022-10-03 19:17:17 +00:00 committed by Gerrit Code Review
commit fc88070dbb

View file

@ -173,7 +173,7 @@ class RandomImageGenerator {
$draws = [];
for ( $i = 0; $i <= $this->shapesToDraw; $i++ ) {
$radius = mt_rand( 0, $diagonalLength / 4 );
$radius = mt_rand( 0, (int)( $diagonalLength / 4 ) );
if ( $radius == 0 ) {
continue;
}