diff --git a/src/Methods/NoParameterWithNullableTypeDeclarationRule.php b/src/Methods/NoParameterWithNullableTypeDeclarationRule.php index fdf5c5cb..632cd7be 100644 --- a/src/Methods/NoParameterWithNullableTypeDeclarationRule.php +++ b/src/Methods/NoParameterWithNullableTypeDeclarationRule.php @@ -73,7 +73,7 @@ public function processNode( ); return Rules\RuleErrorBuilder::message($message) - ->identifier(ErrorIdentifier::noParameterWithContainerTypeDeclaration()->toString()) + ->identifier(ErrorIdentifier::noParameterWithNullableTypeDeclaration()->toString()) ->build(); }, $parametersWithNullableTypeDeclaration); } @@ -95,7 +95,7 @@ public function processNode( ); return Rules\RuleErrorBuilder::message($message) - ->identifier(ErrorIdentifier::noParameterWithContainerTypeDeclaration()->toString()) + ->identifier(ErrorIdentifier::noParameterWithNullableTypeDeclaration()->toString()) ->build(); }, $parametersWithNullableTypeDeclaration); }