Skip to content

Commit

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

Please sign in to comment.