Skip to content

Commit

Permalink
Fix: Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 13, 2024
1 parent 0cec81c commit d4fd228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Methods/NoParameterWithNullableTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d4fd228

Please sign in to comment.