Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit 5f37c76

Browse files
committed
Small issues with php deps
1 parent dca1466 commit 5f37c76

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424

2525
"require-dev" : {
26-
"jbzoo/toolbox-dev" : "^2.4.3"
26+
"jbzoo/toolbox-dev" : "^2.5.0"
2727
},
2828

2929
"autoload" : {

src/Converters/PhpUnitCloverStatsTcConverter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public function toInternalMetric(string $sourceCode): Metrics
8585

8686
$data['CRAPTotal'] = $crapSummary;
8787
$data['CRAPAmount'] = $crapAmount;
88-
$data['CRAPMaximum'] = count($crapValues) > 0 ? max($crapValues) : 0;
88+
/** @phan-suppress-next-line PhanPartialTypeMismatchArgumentInternal */
89+
$data['CRAPMaximum'] = count($crapValues) > 0 ? max($crapValues) : 0.0;
8990
$data['CRAPAverage'] = self::percent($crapSummary, $crapValuesCount) / 100;
9091
$data['CRAPPercent'] = self::percent($crapAmount, $crapValuesCount);
9192

0 commit comments

Comments
 (0)