Skip to content

Commit c9b3be0

Browse files
committed
Change wording to make it clear a list of violations is outputted
1 parent 78b739b commit c9b3be0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Rules/Violations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function toString(): string
7272
* @var Violation[] $violationsByFqcn
7373
*/
7474
foreach ($violationsCollection as $key => $violationsByFqcn) {
75-
$errors .= "\n".$key.' violates rules';
75+
$errors .= "\n$key has {$this->count()} violations";
7676

7777
foreach ($violationsByFqcn as $violation) {
7878
$errors .= "\n ".$violation->getError();

0 commit comments

Comments
 (0)