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 Dec 20, 2024
1 parent 7014d3b commit 70a9d11
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 70a9d11

Please sign in to comment.