Skip to content

Commit

Permalink
Introduce local variable so we can use type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 29, 2023
1 parent ceb238f commit 9c7efa7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ public function isCurrent(): bool

protected static function getRouteGroup(Route $route): ?string
{
return static::normalizeGroupKey($route->getPage()->data('navigation.group'));
/** @var string|null $group */
$group = $route->getPage()->data('navigation.group');

return static::normalizeGroupKey($group);
}

protected static function normalizeGroupKey(?string $group): ?string
Expand Down

0 comments on commit 9c7efa7

Please sign in to comment.