From 07aa94f10fb1a8dedc3ee938144b777fc9de98b9 Mon Sep 17 00:00:00 2001 From: Jake Hotson Date: Thu, 29 Jan 2026 09:21:12 +0000 Subject: [PATCH] Silence a new PHPStan warning This seems to have arisen as a result of a newer version of Stan. --- lib/DateTimeImmutable.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/DateTimeImmutable.php b/lib/DateTimeImmutable.php index b6bc9908..f1113998 100644 --- a/lib/DateTimeImmutable.php +++ b/lib/DateTimeImmutable.php @@ -240,6 +240,9 @@ public static function createFromMutable($dateTime): self return self::createFromRegular($date); } + /** + * @return DateTimeImmutable + */ public static function createFromInterface(\DateTimeInterface $object): self { if ($object instanceof \DateTime) {