Skip to content

Commit

Permalink
Merge pull request #32 from sakanjo/sakanjo-fix-1
Browse files Browse the repository at this point in the history
Fix: return value must be of type string, null returned
  • Loading branch information
pxlrbt authored Oct 1, 2023
2 parents 98b1d13 + 8303a00 commit 9abcba8
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 @@ -35,7 +35,7 @@ public static function boot(Panel $panel)
}
}

protected function getName(string $key, MenuItem $item): string
protected function getName(string $key, MenuItem $item): ?string
{
return match ($key) {
'account' => $item->getLabel() ?? __('Your Account'),
Expand Down

0 comments on commit 9abcba8

Please sign in to comment.