Skip to content

Commit

Permalink
Merge pull request #18 from pestphp/feature/round-down
Browse files Browse the repository at this point in the history
fix: improve rounding for total coverage
  • Loading branch information
nunomaduro authored Jan 25, 2024
2 parents cfb7436 + ddc6b80 commit 78f288a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function fromPHPStanErrors(string $file, array $phpstanErrors, arr
$propertyCoverage,
$paramCoverage,
$returnTypeCoverage,
(int) round(($propertyCoverage + $paramCoverage + $returnTypeCoverage) / 3),
(int) round(($propertyCoverage + $paramCoverage + $returnTypeCoverage) / 3, mode: PHP_ROUND_HALF_DOWN),
);
}
}

0 comments on commit 78f288a

Please # to comment.