Skip to content

Commit

Permalink
more consistency in way parameter name is retrieved
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm committed Jan 4, 2025
1 parent b7b5f84 commit e1a314c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/FunctionCallParametersCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ private function processArguments(
&& !array_key_exists($parameter->getName(), $unusedParametersByName)
) {
if ($nonUnpackAfterUnpacked) {
$errors[] = RuleErrorBuilder::message(sprintf('Named parameter cannot overwrite already unpacked argument $%s.', $argumentName))
$errors[] = RuleErrorBuilder::message(sprintf('Named parameter cannot overwrite already unpacked argument $%s.', $parameter->getName()))
->identifier('argument.namedOverwriteAfterUnpacked')
->line($argumentLine)
->nonIgnorable()
Expand Down

0 comments on commit e1a314c

Please sign in to comment.