Skip to content

Commit 7cb9781

Browse files
committed
Fixed return value when no errors are found
1 parent 32e4661 commit 7cb9781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeSniffer/Reporting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function printReport(
171171
) {
172172
if ($this->totalFiles === 0) {
173173
// No files generated errors.
174-
return;
174+
return 0;
175175
}
176176

177177
$reportClass = self::factory($report);

0 commit comments

Comments
 (0)