Updated DateTime types.

This commit is contained in:
2026-01-13 10:48:04 +01:00
parent 708948fa15
commit 52a4997497
8 changed files with 21 additions and 33 deletions
@@ -2,7 +2,7 @@
namespace App\Request;
use DateTimeInterface;
use DateTimeImmutable;
use OpenApi\Attributes as OA;
use Symfony\Component\Validator\Constraints as Assert;
@@ -14,9 +14,9 @@ class SearchPricesForCategoryRequest
#[OA\Property(description: 'Period start date')]
#[Assert\NotBlank]
public DateTimeInterface $startDate;
public DateTimeImmutable $startDate;
#[OA\Property(description: 'Period end date')]
#[Assert\NotBlank]
public DateTimeInterface $endDate;
public DateTimeImmutable $endDate;
}