Skip to content

Commit

Permalink
Fix: Rename parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 13, 2024
1 parent 514a9b2 commit 246ebcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Methods/NoNullableReturnTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public function processNode(
];
}

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

if ($returnType instanceof Node\NullableType) {
return true;
Expand Down

0 comments on commit 246ebcb

Please sign in to comment.