From b6defe3afb533722875a1bef77c2c97609914d8b Mon Sep 17 00:00:00 2001 From: bezhanSalleh Date: Tue, 9 Jan 2024 06:10:00 +0000 Subject: [PATCH] Fix styling --- src/LanguageSwitch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',