Skip to content

Commit

Permalink
Merge pull request #48 from pxlrbt/fix/nullable-get-url
Browse files Browse the repository at this point in the history
fix: `getUrl()` might return null
  • Loading branch information
pxlrbt authored Nov 18, 2024
2 parents 2dbc1c5 + 5d63194 commit 0f51cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/RegisterUserMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function getName(string $key, MenuItem $item): ?string
};
}

protected function getUrl(string $key, MenuItem $item): string
protected function getUrl(string $key, MenuItem $item): ?string
{
return match ($key) {
'logout' => $item->getUrl() ?? Filament::getLogoutUrl(),
Expand Down

0 comments on commit 0f51cdd

Please sign in to comment.