Navigation Menu

Skip to content

Commit

Permalink
make Date VO extensible
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylhein committed Jul 13, 2021
1 parent 9b43a5a commit 8de6cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Date.php
Expand Up @@ -42,7 +42,7 @@ public static function fromDateTime(\DateTimeInterface $date): self
return new static(CarbonImmutable::instance($date));
}

private function __construct(CarbonImmutable $date)
protected function __construct(CarbonImmutable $date)
{
$this->date = $date->startOfDay();
}
Expand Down

0 comments on commit 8de6cc5

Please sign in to comment.