1
0
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:
Awilum
2019-09-07 22:18:16 +03:00
parent 430dcd69d9
commit 63e3f12e60

View File

@@ -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);
}