diff --git a/src/LanguageSwitch.php b/src/LanguageSwitch.php index d8eb001..41ab680 100755 --- a/src/LanguageSwitch.php +++ b/src/LanguageSwitch.php @@ -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(); @@ -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',