From db8d4d743a722c52a9911020e0e13670c545278a Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 7 Oct 2024 17:12:12 +0200 Subject: [PATCH] chore: Update DateTimeFormatter.php --- src/DateTimeFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DateTimeFormatter.php b/src/DateTimeFormatter.php index aa4687a..9d16cd9 100644 --- a/src/DateTimeFormatter.php +++ b/src/DateTimeFormatter.php @@ -19,7 +19,7 @@ public function __construct(private TranslatorInterface $translator) public function formatDiff( int|string|\DateTimeInterface $from, int|string|\DateTimeInterface|null $to = null, - ?string $locale = null + ?string $locale = null, ): string { $from = self::formatDateTime($from); $to = self::formatDateTime($to); @@ -95,7 +95,7 @@ public function formatDuration(float $seconds, ?string $locale = null): string public function formatAge( int|string|\DateTimeInterface $from, int|string|\DateTimeInterface|null $to = null, - ?string $locale = null + ?string $locale = null, ): string { $from = self::formatDateTime($from); $to = self::formatDateTime($to);