Skip to content

Commit

Permalink
Work with datetime interface
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Feb 13, 2024
1 parent 944d392 commit a29bfd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RecordBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace JuniWalk\Nestor;

use DateTime;
use DateTimeInterface;
use JuniWalk\Nestor\Entity\Record;
use JuniWalk\Nestor\Enums\Type;
use JuniWalk\Nestor\Exceptions\RecordNotValidException;
Expand Down Expand Up @@ -88,7 +88,7 @@ public function withEvent(?string $event): static
}


public function withDate(DateTime $date): static
public function withDate(DateTimeInterface $date): static
{
$this->record['date'] = $date;
return $this;
Expand Down

0 comments on commit a29bfd4

Please sign in to comment.