mirror of
https://github.com/flextype/flextype.git
synced 2025-08-23 21:33:01 +02:00
refactor(core): update I18nTwigExtension #186
This commit is contained in:
@@ -43,7 +43,7 @@ class I18nTwigExtension extends Twig_Extension
|
||||
/**
|
||||
* Translate string
|
||||
*/
|
||||
public function tr(string $translate, ?string $locale = null, array $values = []) : string
|
||||
public function tr(string $translate, string $locale = null, array $values = []) : string
|
||||
{
|
||||
return I18n::find($translate, $locale, $values);
|
||||
}
|
||||
|
Reference in New Issue
Block a user