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 7e89311 commit dbe1f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Methods/NoParameterWithNullDefaultValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public function processNode(
return [];
}

$parametersWithNullDefaultValue = \array_filter($node->params, static function (Node\Param $node): bool {
return self::hasNullDefaultValue($node);
$parametersWithNullDefaultValue = \array_filter($node->params, static function (Node\Param $parameter): bool {
return self::hasNullDefaultValue($parameter);
});

if (0 === \count($parametersWithNullDefaultValue)) {
Expand Down

0 comments on commit dbe1f45

Please sign in to comment.