From 1d657b3f02419e4a5f6b1d92d73d3f8618e6cf7d Mon Sep 17 00:00:00 2001 From: bezhanSalleh Date: Mon, 1 Apr 2024 18:10:46 +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 bcef3e9..46d2785 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',