From c590acfcc15f8570d5effdbfb6e49b8a253b03ce Mon Sep 17 00:00:00 2001 From: Michael Withagen Date: Tue, 17 Dec 2024 11:34:44 +0100 Subject: [PATCH] Update implicit nullable Related to #263 --- src/PreciseTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PreciseTime.php b/src/PreciseTime.php index f155b88..bfdd5d8 100644 --- a/src/PreciseTime.php +++ b/src/PreciseTime.php @@ -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'))