Skip to content

Commit

Permalink
Update implicit nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelw85 authored Dec 10, 2024
1 parent e7b4a12 commit 4a72e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function diff(self $time): DateInterval
return $this->toDateTime()->diff($time->toDateTime());
}

public function toDateTime(DateTimeInterface $date = null): DateTimeInterface
public function toDateTime(?DateTimeInterface $date = null): DateTimeInterface
{
$date = $date ? $this->copyDateTime($date) : new DateTime('1970-01-01 00:00:00');

Expand Down

0 comments on commit 4a72e68

Please sign in to comment.