Skip to content

Commit

Permalink
Merge pull request #16 from pestphp/fix-timeout-calculate-return-type…
Browse files Browse the repository at this point in the history
…-error

Fix error with timeout calculation return type
  • Loading branch information
gehrisandro authored Sep 20, 2024
2 parents a1ce5b5 + 19d1239 commit a1dca5f
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 a1dca5f

Please sign in to comment.