Skip to content

Commit

Permalink
Fix for: Violation of noParameterWithNullableTypeDeclaration rule ide…
Browse files Browse the repository at this point in the history
…ntifies itself as "ergebnis.noParameterWithContainerTypeDeclaration" in PHPStan output

- see #901
  • Loading branch information
manuelkiessling committed Jan 16, 2025
1 parent a50f839 commit b773836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Methods/NoParameterWithNullableTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function processNode(
);

return Rules\RuleErrorBuilder::message($message)
->identifier(ErrorIdentifier::noParameterWithContainerTypeDeclaration()->toString())
->identifier(ErrorIdentifier::noParameterWithNullableTypeDeclaration()->toString())
->build();
}, $parametersWithNullableTypeDeclaration);
}
Expand All @@ -95,7 +95,7 @@ public function processNode(
);

return Rules\RuleErrorBuilder::message($message)
->identifier(ErrorIdentifier::noParameterWithContainerTypeDeclaration()->toString())
->identifier(ErrorIdentifier::noParameterWithNullableTypeDeclaration()->toString())
->build();
}, $parametersWithNullableTypeDeclaration);
}
Expand Down

0 comments on commit b773836

Please sign in to comment.