diff --git a/src/ChangesReporting/Output/JsonOutputFormatter.php b/src/ChangesReporting/Output/JsonOutputFormatter.php index d44e5e6ff49..65062a4bb8e 100644 --- a/src/ChangesReporting/Output/JsonOutputFormatter.php +++ b/src/ChangesReporting/Output/JsonOutputFormatter.php @@ -27,7 +27,7 @@ public function report(ProcessResult $processResult, Configuration $configuratio { $errorsJson = [ 'totals' => [ - 'changed_files' => count($processResult->getFileDiffs()), + 'changed_files' => $processResult->getTotalChanged(), ], ];