From b7738367ee33c2a396d067052899674a34aadd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Kie=C3=9Fling?= Date: Thu, 16 Jan 2025 13:44:33 +0100 Subject: [PATCH] Fix for: Violation of noParameterWithNullableTypeDeclaration rule identifies itself as "ergebnis.noParameterWithContainerTypeDeclaration" in PHPStan output - see ergebnis/phpstan-rules#901 --- src/Methods/NoParameterWithNullableTypeDeclarationRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }