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 10756bb commit c9acb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Methods/NoConstructorParameterWithDefaultValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function processNode(
}

$params = \array_filter($node->params, static function (Node\Param $node): bool {
return self::hasNullDefaultValue($node);
return self::hasDefaultValue($node);
});

if (0 === \count($params)) {
Expand Down Expand Up @@ -92,7 +92,7 @@ public function processNode(
}, $params));
}

private static function hasNullDefaultValue(Node\Param $parameter): bool
private static function hasDefaultValue(Node\Param $parameter): bool
{
return null !== $parameter->default;
}
Expand Down

0 comments on commit c9acb19

Please sign in to comment.