Skip to content

Commit

Permalink
Fix updated Carbon method signatures and return types
Browse files Browse the repository at this point in the history
  • Loading branch information
othyn committed Feb 16, 2024
1 parent bcb5079 commit edd5a4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Entities/LeekDuckEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
public string $endDateString,
public Carbon $startDate,
public Carbon $endDate,
public int $durationInDays,
public float $durationInDays,
public bool $isFullDay,
public ?array $extraData
) {
Expand All @@ -35,14 +35,14 @@ public static function create(array $event, string $timezone = CalendarService::
{
$startDate = Carbon::parse(
time: $event['start'],
tz: new \DateTimeZone(
timezone: new \DateTimeZone(
timezone: $timezone
)
);

$endDate = Carbon::parse(
time: $event['end'],
tz: new \DateTimeZone(
timezone: new \DateTimeZone(
timezone: $timezone
)
);
Expand Down Expand Up @@ -100,14 +100,14 @@ public function changeTimezone(string $timezone = CalendarService::TIMEZONE): vo
{
$this->startDate = Carbon::parse(
time: $this->startDateString,
tz: new \DateTimeZone(
timezone: new \DateTimeZone(
timezone: $timezone
)
);

$this->endDate = Carbon::parse(
time: $this->endDateString,
tz: new \DateTimeZone(
timezone: new \DateTimeZone(
timezone: $timezone
)
);
Expand Down

0 comments on commit edd5a4b

Please sign in to comment.