Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
cevro committed Oct 28, 2024
1 parent a32ae2c commit 02674b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/DateTime/Period.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions src/DateTime/Phase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

enum Phase
{
case before;
case after;
case onGoing;
case Before;
case After;
case OnGoing;
}

0 comments on commit 02674b8

Please sign in to comment.