Skip to content

Commit

Permalink
Merge branch '2.x' into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 29, 2024
2 parents 8420d8c + 4be0cf0 commit 8e04782
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"require": {
"php": "^8.2",
"phpstan/phpstan": "^1.10.55",
"phpstan/phpstan": "^1.10.60",
"tomasvotruba/type-coverage": "^0.2.1",
"pestphp/pest-plugin": "^3.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/PHPStanAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public static function make(Container $container, array $rules, array $collector
true,
true,
false,
true,
);

$fileAnalyser = new FileAnalyser(
Expand Down
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 8e04782

Please sign in to comment.