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
In the "TestCase.php" generated by
create-project:phpstan: