Skip to content

Commit a94a8b0

Browse files
committed
Fix plural
1 parent dd16f83 commit a94a8b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/RuleTestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ protected function analyzeFiles(
5050
$this->autofix($file, array_values($fileErrors));
5151
}
5252

53+
$plural = count($files) > 1 ? 's' : '';
54+
$were = count($files) > 1 ? 'were' : 'was';
5355
$filesStr = implode(', ', $files);
54-
self::fail("Files {$filesStr} were autofixed. This setup should never remain in the codebase.");
56+
self::fail("File{$plural} {$filesStr} {$were} autofixed. This setup should never remain in the codebase.");
5557
}
5658

5759
foreach ($files as $file) {

0 commit comments

Comments
 (0)