forked from Somnia/SomniaRooms
Updated DateTime types.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user