From 4a72e687d3ba4ff3a307d185a2b142d4c157b01a Mon Sep 17 00:00:00 2001 From: Michael Withagen Date: Tue, 10 Dec 2024 12:09:01 +0100 Subject: [PATCH] Update implicit nullable --- src/Time.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Time.php b/src/Time.php index d7f6496..58c694c 100644 --- a/src/Time.php +++ b/src/Time.php @@ -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');