Skip to content

Commit

Permalink
make error ignorable
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm committed Jun 3, 2022
1 parent d58da3a commit 4cdc22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/Properties/ReadOnlyByPhpDocPropertyRule.php
Expand Up @@ -27,7 +27,7 @@ public function processNode(Node $node, Scope $scope): array

$errors = [];
if ($node->getDefault() !== null) {
$errors[] = RuleErrorBuilder::message('@readonly property cannot have a default value.')->nonIgnorable()->build();
$errors[] = RuleErrorBuilder::message('@readonly property cannot have a default value.')->build();
}

return $errors;
Expand Down

0 comments on commit 4cdc22f

Please sign in to comment.