Skip to content

Commit

Permalink
Update DateTime.php (#28)
Browse files Browse the repository at this point in the history
Added type for PHP8 support (fix PHP8 Deprecated error)
  • Loading branch information
dedalx authored May 21, 2023
1 parent 8e38fad commit d0abac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DTO/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(\DateTimeInterface $dateTime)
$this->dateTime = $dateTime;
}

public function jsonSerialize()
public function jsonSerialize(): string
{
return $this->dateTime->format(DATE_ATOM);
}
Expand Down

0 comments on commit d0abac6

Please sign in to comment.