Skip to content

Commit 39b9c4a

Browse files
committed
make count rule nonignorable
1 parent 9e167c1 commit 39b9c4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Rules/MaximumIgnoredErrorCountRule.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ public function processNode(Node $node, Scope $scope): array
6262
return [];
6363
}
6464

65-
$identifierRuleError = RuleErrorBuilder::message(sprintf(self::ERROR_MESSAGE, count($ignoreErrors), $this->limit))
65+
$errorMessage = sprintf(self::ERROR_MESSAGE, count($ignoreErrors), $this->limit);
66+
67+
$identifierRuleError = RuleErrorBuilder::message($errorMessage)
6668
->identifier(RuleIdentifier::MAXIMUM_IGNORED_ERROR_COUNT)
69+
->nonIgnorable()
6770
->build();
6871

6972
return [$identifierRuleError];

0 commit comments

Comments
 (0)