diff --git a/lib/Headers/Date.php b/lib/Headers/Date.php index e260522..5e06b45 100644 --- a/lib/Headers/Date.php +++ b/lib/Headers/Date.php @@ -19,9 +19,10 @@ readonly class Date { public static function from( - self|DateTimeInterface|int|string|null $source, - DateTimeZone|string|null $timezone = null, + self|DateTimeInterface|int|string|null $source ): self { + $timezone = null; + if ($source === null) { return new self(); } elseif ($source instanceof self) {