Skip to content

Commit

Permalink
Remove timezone argument
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Nov 17, 2024
1 parent a9a57a6 commit a9e7b61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Headers/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a9e7b61

Please sign in to comment.