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;