Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Mar 15, 2024
1 parent 01ecb8c commit fedd7d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public function __construct(private TranslatorInterface $translator)
*/
public function formatDiff(
int|string|\DateTimeInterface $from,
int|string|\DateTimeInterface $to = null,
string $locale = null
int|string|\DateTimeInterface|null $to = null,
string|null $locale = null
): string {
$from = self::formatDateTime($from);
$to = self::formatDateTime($to);
Expand Down Expand Up @@ -53,7 +53,7 @@ public function formatDiff(
*
* @source https://github.com/symfony/symfony/blob/ad72245261792c6b5d2db821fcbd141b11095215/src/Symfony/Component/Console/Helper/Helper.php#L97
*/
public function formatDuration(float $seconds, string $locale = null): string
public function formatDuration(float $seconds, string|null $locale = null): string
{
static $timeFormats = [
[0, 'duration.none'],
Expand Down Expand Up @@ -94,8 +94,8 @@ public function formatDuration(float $seconds, string $locale = null): string
*/
public function formatAge(
int|string|\DateTimeInterface $from,
int|string|\DateTimeInterface $to = null,
string $locale = null
int|string|\DateTimeInterface|null $to = null,
string|null $locale = null
): string {
$from = self::formatDateTime($from);
$to = self::formatDateTime($to);
Expand Down

0 comments on commit fedd7d2

Please sign in to comment.