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