From 0cec81c902563064347e38de86aed9ff2118b3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 13 Dec 2024 08:31:26 +0100 Subject: [PATCH] Fix: Rename parameter --- src/Methods/NoParameterWithNullableTypeDeclarationRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Methods/NoParameterWithNullableTypeDeclarationRule.php b/src/Methods/NoParameterWithNullableTypeDeclarationRule.php index b8b68079..509a9f9e 100644 --- a/src/Methods/NoParameterWithNullableTypeDeclarationRule.php +++ b/src/Methods/NoParameterWithNullableTypeDeclarationRule.php @@ -37,8 +37,8 @@ public function processNode( return []; } - $parametersWithNullableTypeDeclaration = \array_filter($node->params, static function (Node\Param $node): bool { - return self::isNullable($node); + $parametersWithNullableTypeDeclaration = \array_filter($node->params, static function (Node\Param $parameter): bool { + return self::isNullable($parameter); }); if (0 === \count($parametersWithNullableTypeDeclaration)) {