From 915abd65fce77682dfa046c395ca0d47f477a9ea Mon Sep 17 00:00:00 2001 From: Marvin Courcier Date: Wed, 28 Dec 2022 15:04:01 +0100 Subject: [PATCH 1/2] specify createFromMutable changing types for php8.2 --- lib/DateTimeImmutable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/DateTimeImmutable.php b/lib/DateTimeImmutable.php index d9900d92..2d96755d 100644 --- a/lib/DateTimeImmutable.php +++ b/lib/DateTimeImmutable.php @@ -232,6 +232,7 @@ public function add($interval): self * @param \DateTime $dateTime * @return DateTimeImmutable */ + #[\ReturnTypeWillChange] public static function createFromMutable($dateTime): self { $date = \DateTimeImmutable::createFromMutable($dateTime); From dfec7c68e858d74c684db2755cf1e3bdbd9fd64f Mon Sep 17 00:00:00 2001 From: Marvin Courcier Date: Wed, 28 Dec 2022 16:20:31 +0100 Subject: [PATCH 2/2] replace tab by spaces --- lib/DateTimeImmutable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DateTimeImmutable.php b/lib/DateTimeImmutable.php index 2d96755d..4926da0b 100644 --- a/lib/DateTimeImmutable.php +++ b/lib/DateTimeImmutable.php @@ -232,7 +232,7 @@ public function add($interval): self * @param \DateTime $dateTime * @return DateTimeImmutable */ - #[\ReturnTypeWillChange] + #[\ReturnTypeWillChange] public static function createFromMutable($dateTime): self { $date = \DateTimeImmutable::createFromMutable($dateTime);