diff --git a/src/Closures/NoParameterWithNullDefaultValueRule.php b/src/Closures/NoParameterWithNullDefaultValueRule.php index 5b4cce55..157d6407 100644 --- a/src/Closures/NoParameterWithNullDefaultValueRule.php +++ b/src/Closures/NoParameterWithNullDefaultValueRule.php @@ -36,7 +36,7 @@ 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 { if (!$node->default instanceof Node\Expr\ConstFetch) { return false; } @@ -44,7 +44,7 @@ public function processNode( return 'null' === $node->default->name->toLowerString(); }); - if (0 === \count($params)) { + if (0 === \count($parametersWithNullDefaultValue)) { return []; } @@ -63,6 +63,6 @@ public function processNode( return Rules\RuleErrorBuilder::message($message) ->identifier(ErrorIdentifier::noParameterWithNullDefaultValue()->toString()) ->build(); - }, $params)); + }, $parametersWithNullDefaultValue)); } }