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 39f2fe7 commit c1b5931
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Closures/NoParameterWithNullableTypeDeclarationRule.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 {
$parametersWithNullableTypeDeclaration = \array_filter($node->params, static function (Node\Param $node): bool {
return self::isNullable($node);
});

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

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

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

0 comments on commit c1b5931

Please sign in to comment.