We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f37f0 commit d65d39dCopy full SHA for d65d39d
src/Symfony/Contracts/Translation/TranslatorTrait.php
@@ -35,7 +35,7 @@ public function setLocale($locale)
35
*/
36
public function getLocale()
37
{
38
- return $this->locale ?: \Locale::getDefault();
+ return $this->locale ?: (class_exists(\Locale::class) ? \Locale::getDefault() : 'en');
39
}
40
41
/**
0 commit comments