Skip to content

Commit

Permalink
Merge pull request #264 from michaelw85/patch-1
Browse files Browse the repository at this point in the history
Update implicit nullable
  • Loading branch information
kylekatarnls authored Dec 11, 2024
2 parents e7b4a12 + 4a72e68 commit 7dde181
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 7dde181

Please sign in to comment.