-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Hello,
i've a Laravel App in the current version 12.19.3 and your package in version 1.0.22 installed.
Everything works fine when the page is opened in a browser but if i try to index the page via the google search console or run a text with google page speed insights it thows an 500 error because in the nesbot/Carbon/Laravel/ServiceProvider on line 80 the app->getLocale retuns false.
This only happens when the "auto" setting is set to true because the Carbon::setLocale used in the previous mentioned ServiceProvider expects a string.
So the auto browser language detection should return null or a string, null instead of false if no language is detected.
Metadata
Metadata
Assignees
Labels
No labels