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 09f7785 commit bcb1b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Closures/NoNullableReturnTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function processNode(
Node $node,
Analyser\Scope $scope
): array {
if (!self::hasNullableReturnType($node)) {
if (!self::hasNullableReturnTypeDeclaration($node)) {
return [];
}

Expand All @@ -43,7 +43,7 @@ public function processNode(
];
}

private static function hasNullableReturnType(Node\Expr\Closure $node): bool
private static function hasNullableReturnTypeDeclaration(Node\Expr\Closure $node): bool
{
$returnType = $node->getReturnType();

Expand Down

0 comments on commit bcb1b2d

Please sign in to comment.