Skip to content

Passing "null" as the $locale argument to Symfony\Component\Translation\Translator::setLocale() is deprecated since Symfony 4.4 #173

@xsuchy09

Description

@xsuchy09
User Deprecated
Passing "null" as the $locale argument to Symfony\Component\Translation\Translator::setLocale() is deprecated since Symfony 4.4
.../kdyby/translation/src/Translator.php:100	

  Kdyby\Translation\Translator->setLocale()

 90:            IResourceLoader $loader
 91:        )
 92:        {
 93:            $this->localeResolver = $localeResolver;
 94:            $this->formatter = $formatter;
 95:            $this->catalogueCompiler = $catalogueCompiler;
 96:            $this->fallbackResolver = $fallbackResolver;
 97:            $this->translationsLoader = $loader;
 98:    
 99:            parent::__construct('', $formatter);
100:            $this->setLocale(NULL);
101:        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions