Skip to content

Commit

Permalink
Merge branch 'feature/user-preffered-locale-hook' of github.com:bezha…
Browse files Browse the repository at this point in the history
…nSalleh/filament-language-switch into feature/user-preffered-locale-hook
  • Loading branch information
bezhanSalleh committed Apr 1, 2024
2 parents 08241cc + 1d657b3 commit 484bf38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LanguageSwitch.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function circular(bool $condition = true): static
return $this;
}

public function displayLocale(string $locale = null): static
public function displayLocale(?string $locale = null): static
{
$this->displayLocale = $locale ?? app()->getLocale();

Expand All @@ -98,7 +98,7 @@ public function nativeLabel(bool $condition = true): static
return $this;
}

public function outsidePanelRoutes(array | Closure $routes = null): static
public function outsidePanelRoutes(array | Closure | null $routes = null): static
{
$this->outsidePanelRoutes = $routes ?? [
'auth.login',
Expand Down

0 comments on commit 484bf38

Please sign in to comment.