diff --git a/src/LanguageSwitch.php b/src/LanguageSwitch.php index a65b6cc..dbcd6be 100755 --- a/src/LanguageSwitch.php +++ b/src/LanguageSwitch.php @@ -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',