Skip to content

Commit

Permalink
Fix: Rename parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 13, 2024
1 parent e001413 commit fa7816e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Functions/NoParameterWithNullDefaultValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public function processNode(

$functionName = $node->namespacedName;

return \array_values(\array_map(static function (Node\Param $node) use ($functionName): Rules\RuleError {
return \array_values(\array_map(static function (Node\Param $parameterWithNullDefaultValue) use ($functionName): Rules\RuleError {
/** @var Node\Expr\Variable $variable */
$variable = $node->var;
$variable = $parameterWithNullDefaultValue->var;

/** @var string $parameterName */
$parameterName = $variable->name;
Expand Down

0 comments on commit fa7816e

Please sign in to comment.