diff --git a/src/Methods/NoParameterWithNullableTypeDeclarationRule.php b/src/Methods/NoParameterWithNullableTypeDeclarationRule.php index 509a9f9e..879b1fd6 100644 --- a/src/Methods/NoParameterWithNullableTypeDeclarationRule.php +++ b/src/Methods/NoParameterWithNullableTypeDeclarationRule.php @@ -38,7 +38,7 @@ public function processNode( } $parametersWithNullableTypeDeclaration = \array_filter($node->params, static function (Node\Param $parameter): bool { - return self::isNullable($parameter); + return self::hasNullableTypeDeclaration($parameter); }); if (0 === \count($parametersWithNullableTypeDeclaration)) { @@ -92,7 +92,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;