diff --git a/src/Closures/NoParameterWithNullableTypeDeclarationRule.php b/src/Closures/NoParameterWithNullableTypeDeclarationRule.php index 13ea6804..17f0f16c 100644 --- a/src/Closures/NoParameterWithNullableTypeDeclarationRule.php +++ b/src/Closures/NoParameterWithNullableTypeDeclarationRule.php @@ -37,7 +37,7 @@ public function processNode( } $parametersWithNullableTypeDeclaration = \array_filter($node->params, static function (Node\Param $node): bool { - return self::isNullable($node); + return self::hasNullableTypeDeclaration($node); }); if (0 === \count($parametersWithNullableTypeDeclaration)) { @@ -62,7 +62,7 @@ public function processNode( }, $parametersWithNullableTypeDeclaration)); } - private static function isNullable(Node\Param $node): bool + private static function hasNullableTypeDeclaration(Node\Param $node): bool { if ($node->type instanceof Node\NullableType) { return true;