Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 2c4e8ef

Browse files
authored
Fix totals parsing in ReportDeserializer (#11)
1 parent b6a3c1e commit 2c4e8ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpCodeSnifferRunner/ReportDeserializer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ private function denormalizeTotals(object $normalizedTotals): Totals
3737
{
3838
return new Totals(
3939
PropertyAccessor::getIntegerProperty($normalizedTotals, 'errors', 'totals'),
40-
PropertyAccessor::getIntegerProperty($normalizedTotals, 'errors', 'totals'),
41-
PropertyAccessor::getIntegerProperty($normalizedTotals, 'errors', 'totals')
40+
PropertyAccessor::getIntegerProperty($normalizedTotals, 'warnings', 'totals'),
41+
PropertyAccessor::getIntegerProperty($normalizedTotals, 'fixable', 'totals')
4242
);
4343
}
4444

0 commit comments

Comments
 (0)