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 68b55f6 commit e4fc3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Functions/NoParameterWithNullableTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e4fc3cc

Please sign in to comment.