Skip to content

Commit

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

public function toDateTime(DateTimeInterface $date = null): DateTimeInterface
public function toDateTime(?DateTimeInterface $date = null): DateTimeInterface
{
return $date
? $this->copyDateTime($date)->modify($this->format('H:i:s.u'))
Expand Down

0 comments on commit c590acf

Please sign in to comment.