File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -208,12 +208,9 @@ private function getLocale2LanguageMap(): array
208208 {
209209 $ configuredLocales = $ this ->getParameter ('php_translation.locales ' );
210210
211- $ names = [];
212- if (\class_exists (Locales::class)) {
213- $ names = Locales::getNames ('en ' );
214- } elseif (\method_exists (Intl::class, 'getLocaleBundle ' )) {
215- $ names = Intl::getLocaleBundle ()->getLocaleNames ('en ' );
216- }
211+ $ names = \class_exists (Locales::class)
212+ ? Locales::getNames ('en ' )
213+ : Intl::getLocaleBundle ()->getLocaleNames ('en ' );
217214
218215 $ map = [];
219216 foreach ($ configuredLocales as $ l ) {
Original file line number Diff line number Diff line change 2525 "twig/twig" : " ^1.42 || ^2.11"
2626 },
2727 "require-dev" : {
28- "symfony/phpunit-bridge" : " ^4.4 | ^5.0" ,
28+ "symfony/phpunit-bridge" : " ^4.4 || ^5.0" ,
2929 "php-translation/translator" : " ^1.0" ,
3030 "php-http/curl-client" : " ^1.7" ,
3131 "php-http/message" : " ^1.6" ,
Original file line number Diff line number Diff line change @@ -33,3 +33,9 @@ parameters:
3333 -
3434 path: %currentWorkingDirectory%/Command
3535 message: '#Call to an undefined method Symfony\\Component\\Console\\Application::getKernel()#'
36+ -
37+ path: %currentWorkingDirectory%/Controller/WebUIController.php
38+ message: '#Call to an undefined static method Symfony\\Component\\Intl\\Intl::getLocaleBundle()#'
39+ -
40+ path: %currentWorkingDirectory%/DependencyInjection/Configuration.php
41+ message: '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root()#'
You can’t perform that action at this time.
0 commit comments