From e4fc3cc9e13c0246298fbde4134941dd71376d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 13 Dec 2024 08:09:36 +0100 Subject: [PATCH] Fix: Rename method --- src/Functions/NoParameterWithNullableTypeDeclarationRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Functions/NoParameterWithNullableTypeDeclarationRule.php b/src/Functions/NoParameterWithNullableTypeDeclarationRule.php index a6ed3064..65b0d1d4 100644 --- a/src/Functions/NoParameterWithNullableTypeDeclarationRule.php +++ b/src/Functions/NoParameterWithNullableTypeDeclarationRule.php @@ -37,7 +37,7 @@ public function processNode( } $params = \array_filter($node->params, static function (Node\Param $node): bool { - return self::isNullable($node); + return self::hasNullableTypeDeclration($node); }); if (0 === \count($params)) { @@ -65,7 +65,7 @@ public function processNode( }, $params)); } - private static function isNullable(Node\Param $node): bool + private static function hasNullableTypeDeclration(Node\Param $node): bool { if ($node->type instanceof Node\NullableType) { return true;