File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,9 @@ public function getFlagWidth(): string
115115 /**
116116 * @return array<string>
117117 */
118- public function getLocales (): Closure | array | null
118+ public function getLocales (): array | null
119119 {
120- return $ this ->locales ;
120+ return $ this ->evaluate ( $ this -> locales ) ;
121121 }
122122
123123 public function defaultLocale (string | Closure $ locale ): static
@@ -127,8 +127,8 @@ public function defaultLocale(string | Closure $locale): static
127127 return $ this ;
128128 }
129129
130- public function getDefaultLocale (): string | Closure
130+ public function getDefaultLocale (): string
131131 {
132- return $ this ->defaultLocale ?? config ('app.fallback_locale ' , 'en ' );
132+ return $ this ->evaluate ( $ this -> defaultLocale ) ?? config ('app.fallback_locale ' , 'en ' );
133133 }
134134}
You can’t perform that action at this time.
0 commit comments