Skip to content

Commit

Permalink
tweak: explicit int cast
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Aug 9, 2023
1 parent 194d656 commit a55e0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/phpunit/Migration/MigratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ private function generateFileList($missingFiles = false, $duplicateFiles = false
}

if($missingFiles) {
$numToRemove = rand(1, $migLength / 10);
$numToRemove = rand(1, (int)($migLength / 10));
for($i = 0; $i < $numToRemove; $i++) {
$keyToRemove = array_rand($fileList);
unset($fileList[$keyToRemove]);
Expand Down

0 comments on commit a55e0af

Please sign in to comment.