From 514a9b2ba85de9573de17be67e1af062d7737db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 13 Dec 2024 08:28:03 +0100 Subject: [PATCH] Fix: Rename parameter --- .../NoConstructorParameterWithDefaultValueRule.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Methods/NoConstructorParameterWithDefaultValueRule.php b/src/Methods/NoConstructorParameterWithDefaultValueRule.php index bd8b1d3d..233343e5 100644 --- a/src/Methods/NoConstructorParameterWithDefaultValueRule.php +++ b/src/Methods/NoConstructorParameterWithDefaultValueRule.php @@ -53,9 +53,9 @@ public function processNode( $classReflection = $scope->getClassReflection(); if ($classReflection->isAnonymous()) { - return \array_map(static function (Node\Param $node): Rules\RuleError { + return \array_map(static function (Node\Param $parameterWithDefaultValue): Rules\RuleError { /** @var Node\Expr\Variable $variable */ - $variable = $node->var; + $variable = $parameterWithDefaultValue->var; /** @var string $parameterName */ $parameterName = $variable->name; @@ -73,9 +73,9 @@ public function processNode( $className = $classReflection->getName(); - return \array_map(static function (Node\Param $node) use ($className): Rules\RuleError { + return \array_map(static function (Node\Param $parameterWithDefaultValue) use ($className): Rules\RuleError { /** @var Node\Expr\Variable $variable */ - $variable = $node->var; + $variable = $parameterWithDefaultValue->var; /** @var string $parameterName */ $parameterName = $variable->name;