Skip to content

Commit

Permalink
Fix error with timeout calculation return type
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Sep 20, 2024
1 parent a1ce5b5 commit 19d1239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MutationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private function calculateTimeout(): int
->getInitialTestSuiteDuration()
->seconds();

return $initialTestSuiteDuration + max(5, $initialTestSuiteDuration * 0.2);
return $initialTestSuiteDuration + max(5, (int) ($initialTestSuiteDuration * 0.2));
}

public function hasFinished(): bool
Expand Down

0 comments on commit 19d1239

Please sign in to comment.