Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
bezhanSalleh authored and github-actions[bot] committed Jan 9, 2024
1 parent 86a0825 commit b6defe3
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 @@ -82,14 +82,14 @@ 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();

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 b6defe3

Please sign in to comment.