Skip to content

Commit

Permalink
Fix: Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 13, 2024
1 parent c7dd487 commit e001413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Functions/NoParameterWithNullDefaultValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public function processNode(
return [];
}

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

if (0 === \count($params)) {
if (0 === \count($parametersWithNullDefaultValue)) {
return [];
}

Expand All @@ -62,7 +62,7 @@ public function processNode(
return Rules\RuleErrorBuilder::message($message)
->identifier(ErrorIdentifier::noParameterWithNullDefaultValue()->toString())
->build();
}, $params));
}, $parametersWithNullDefaultValue));
}

private static function hasNullDefaultValue(Node\Param $node): bool
Expand Down

0 comments on commit e001413

Please sign in to comment.