Skip to content

Commit 0f51cdd

Browse files
authored
Merge pull request #48 from pxlrbt/fix/nullable-get-url
fix: `getUrl()` might return null
2 parents 2dbc1c5 + 5d63194 commit 0f51cdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Actions/RegisterUserMenu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function getName(string $key, MenuItem $item): ?string
4444
};
4545
}
4646

47-
protected function getUrl(string $key, MenuItem $item): string
47+
protected function getUrl(string $key, MenuItem $item): ?string
4848
{
4949
return match ($key) {
5050
'logout' => $item->getUrl() ?? Filament::getLogoutUrl(),

0 commit comments

Comments
 (0)