You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The or operator does not have the same precedence as ||.
This could lead to unexpected behavior, use || instead.
$validator = $this->metaValidator;
// Get the preferred locale from the Browser.$preferredLocale = $request->getPreferredLanguage();
$availableLocales = $request->getLanguages();
if (!$preferredLocaleORcount($availableLocales) === 0) {
returnfalse;
}
// If the preferred primary locale is allowed, return the locale.if ($validator->isAllowed($preferredLocale)) {
in LocaleGuesser/BrowserLocaleGuesser.php, line 52
Posted from SensioLabsInsight
The text was updated successfully, but these errors were encountered: