fix coverage result for 99.95%+

This commit is contained in:
JonPurvis
2024-08-26 21:58:16 +01:00
parent 9ceb0834ae
commit df69b0b791
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ final class Coverage
$totalCoverageAsString = $totalCoverage->asFloat() === 0.0
? '0.0'
: number_format($totalCoverage->asFloat(), 1, '.', '');
: number_format(floor($totalCoverage->asFloat() * 10) / 10, 1, '.', '');
renderUsing($output);
render(<<<HTML