Skip to content

Commit

Permalink
Fix: Rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 13, 2024
1 parent 4c54a41 commit a65c12f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Functions/NoNullableReturnTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function processNode(
return [];
}

if (!self::hasNullableReturnType($node)) {
if (!self::hasNullableReturnTypeDeclaration($node)) {
return [];
}

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

private static function hasNullableReturnType(Node\Stmt\Function_ $function): bool
private static function hasNullableReturnTypeDeclaration(Node\Stmt\Function_ $function): bool
{
$returnType = $function->getReturnType();

Expand Down
4 changes: 2 additions & 2 deletions src/Methods/NoNullableReturnTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function processNode(
Node $node,
Analyser\Scope $scope
): array {
if (!self::hasNullableReturnType($node)) {
if (!self::hasNullableReturnTypeDeclaration($node)) {
return [];
}

Expand Down Expand Up @@ -66,7 +66,7 @@ public function processNode(
];
}

private static function hasNullableReturnType(Node\Stmt\ClassMethod $method): bool
private static function hasNullableReturnTypeDeclaration(Node\Stmt\ClassMethod $method): bool
{
$returnType = $method->getReturnType();

Expand Down

0 comments on commit a65c12f

Please sign in to comment.