From c7ba4a694209a497984e4c2d23eaf9622fc61054 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Sat, 6 Sep 2025 01:38:42 +0200 Subject: [PATCH] Fix DateTimeInterface in LogEvent --- src/LogEvent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LogEvent.php b/src/LogEvent.php index 8c82571..0076ea5 100644 --- a/src/LogEvent.php +++ b/src/LogEvent.php @@ -2,6 +2,7 @@ namespace LogDb\Client; +use DateTimeInterface; use JsonSerializable; class LogEvent implements JsonSerializable @@ -14,7 +15,7 @@ class LogEvent implements JsonSerializable public readonly ?string $source = null, public readonly ?string $origin = null, public readonly array $context = [], - public readonly ?DateTime $date = null, + public readonly ?DateTimeInterface $date = null, ) { }