diff --git a/src/Rules/Symfony/NoConstructorAndRequiredTogetherRule.php b/src/Rules/Symfony/NoConstructorAndRequiredTogetherRule.php index e48421c8..a1b02824 100644 --- a/src/Rules/Symfony/NoConstructorAndRequiredTogetherRule.php +++ b/src/Rules/Symfony/NoConstructorAndRequiredTogetherRule.php @@ -49,12 +49,12 @@ public function processNode(Node $node, Scope $scope): array return []; } - $ruleError = RuleErrorBuilder::message(self::ERROR_MESSAGE) + $identifierRuleError = RuleErrorBuilder::message(self::ERROR_MESSAGE) ->identifier(SymfonyRuleIdentifier::NO_CONSTRUCT_AND_REQUIRED) ->build(); return [ - $ruleError, + $identifierRuleError, ]; }