It seems like $locale can also be of type Illuminate\Session\SessionManager and Illuminate\Session\Store; however, parameter $locale of Mcamara\LaravelLocalizat...calization::setLocale() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $locale can also be of type Illuminate\Session\SessionManager and Illuminate\Session\Store; however, parameter $locale of Carbon\Carbon::setLocale() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $locale can also be of type Illuminate\Session\SessionManager and Illuminate\Session\Store; however, parameter $locales of setlocale() does only seem to accept array|integer|string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation