Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e80d6ab

Browse filesBrowse files
committed
remove depreaction
1 parent b3fb09e commit e80d6ab
Copy full SHA for e80d6ab

File tree

1 file changed

+1
-5
lines changed
Filter options

1 file changed

+1
-5
lines changed

‎src/Symfony/Component/Translation/Translator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Translator.php
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ public function setLocale($locale)
171171
*/
172172
public function getLocale()
173173
{
174-
if (null === $this->locale) {
175-
@trigger_error(sprintf('Using a "null" $locale is deprecated since Symfony 4.4. You should set it via %s::setLocale($locale) explicitly.', static::class, \E_USER_DEPRECATED));
176-
}
177-
178-
return $this->locale ?? 'en';
174+
return $this->locale ?? \Locale::getDefault();
179175
}
180176

181177
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.