Release 2.8.0 (#4508)

This commit is contained in:
Kevin Papst
2024-01-03 00:28:35 +01:00
committed by GitHub
parent d8f89d9f3d
commit 8eeb9c120a
27 changed files with 409 additions and 407 deletions

View File

@@ -48,15 +48,15 @@ final class CalendarEvent
*/
#[Serializer\Expose]
#[Serializer\Groups(['Default'])]
#[Serializer\Type(name: 'DateTime')]
private \DateTimeInterface $start; // @phpstan-ignore-line
#[Serializer\Type(name: 'DateTimeImmutable')]
private \DateTimeImmutable $start; // @phpstan-ignore-line
/**
* Calendar entry end date
*/
#[Serializer\Expose]
#[Serializer\Groups(['Default'])]
#[Serializer\Type(name: 'DateTime')]
private \DateTimeInterface $end; // @phpstan-ignore-line
#[Serializer\Type(name: 'DateTimeImmutable')]
private \DateTimeImmutable $end; // @phpstan-ignore-line
public function setTitle(string $title): void
{
@@ -65,12 +65,12 @@ final class CalendarEvent
public function setStart(\DateTimeInterface $start): void
{
$this->start = $start;
$this->start = \DateTimeImmutable::createFromInterface($start);
}
public function setEnd(\DateTimeInterface $end): void
{
$this->end = $end;
$this->end = \DateTimeImmutable::createFromInterface($end);
}
public function setColor(?string $color): void