From a189fd1f3b4981257dd8329e9cc1bb1c703d65bf Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Tue, 2 Aug 2022 22:18:19 +0200 Subject: [PATCH] fix: global namespace --- src/config/container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/container.php b/src/config/container.php index aadba40..ae2d689 100644 --- a/src/config/container.php +++ b/src/config/container.php @@ -42,7 +42,7 @@ return [ $twig->getEnvironment()->addFilter(new \Twig\TwigFilter('formatDate', function (\Twig\Environment $env, $inp) use ($container) { $locale = $env->getGlobals()['locale']; - $formatter = new IntlDateFormatter($locale); + $formatter = new \IntlDateFormatter($locale); if ($inp instanceof \DateTime) { $d = $inp; } else {