Skip to content

[spiral/translator] Add TranslatorInterface::setLocale() #1223

Description

@rincler

In the "TestCase.php" generated by create-project:

if ($container->has(TranslatorInterface::class)) {
    $container->get(TranslatorInterface::class)->setLocale('en');
}

phpstan:

 Line   tests/TestCase.php                                                               
 ------ --------------------------------------------------------------------------------- 
  34     Call to an undefined method Spiral\Translator\TranslatorInterface::setLocale().  
         🪪  method.notFound    

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions