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 2758314 commit e382238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Methods/NoParameterWithNullDefaultValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ public function processNode(
}, $parametersWithNullDefaultValue));
}

private static function hasNullDefaultValue(Node\Param $node): bool
private static function hasNullDefaultValue(Node\Param $parameter): bool
{
if (!$node->default instanceof Node\Expr\ConstFetch) {
if (!$parameter->default instanceof Node\Expr\ConstFetch) {
return false;
}

return 'null' === $node->default->name->toLowerString();
return 'null' === $parameter->default->name->toLowerString();
}
}

0 comments on commit e382238

Please sign in to comment.