From 02674b88176e357269592278b9515d98101e9f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mi=C5=A1o=20=C4=8Cerve=C5=88=C3=A1k?= Date: Mon, 28 Oct 2024 01:07:37 +0100 Subject: [PATCH] Fix types --- src/DateTime/Period.php | 4 ++-- src/DateTime/Phase.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/DateTime/Period.php b/src/DateTime/Period.php index edc9e0b..18bd227 100644 --- a/src/DateTime/Period.php +++ b/src/DateTime/Period.php @@ -7,8 +7,8 @@ class Period { public function __construct( - public readonly \DateTimeImmutable $begin, - public readonly \DateTimeImmutable $end, + public readonly \DateTimeInterface $begin, + public readonly \DateTimeInterface $end, ) { if ($this->begin > $this->end) { throw new \LogicException(); diff --git a/src/DateTime/Phase.php b/src/DateTime/Phase.php index c6d43ab..1db62ad 100644 --- a/src/DateTime/Phase.php +++ b/src/DateTime/Phase.php @@ -6,7 +6,7 @@ enum Phase { - case before; - case after; - case onGoing; + case Before; + case After; + case OnGoing; }