From dbe1f4530078909fc8b06dab26660ce0cee7438a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 13 Dec 2024 09:41:56 +0100 Subject: [PATCH] Fix: Rename parameter --- src/Methods/NoParameterWithNullDefaultValueRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Methods/NoParameterWithNullDefaultValueRule.php b/src/Methods/NoParameterWithNullDefaultValueRule.php index 02477a33..575a49e9 100644 --- a/src/Methods/NoParameterWithNullDefaultValueRule.php +++ b/src/Methods/NoParameterWithNullDefaultValueRule.php @@ -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)) {