Skip to content

Commit f326cde

Browse files
committed
chore(api): used new DateImmutable for availableDate in Products
1 parent 3c65125 commit f326cde

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ApiPlatform/Resources/Product/Product.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
use PrestaShop\PrestaShop\Core\Domain\Product\Exception\ProductNotFoundException;
3232
use PrestaShop\PrestaShop\Core\Domain\Product\Query\GetProductForEditing;
3333
use PrestaShop\PrestaShop\Core\Domain\Shop\Exception\ShopAssociationNotFound;
34+
use PrestaShop\PrestaShop\Core\Util\DateTime\DateImmutable;
3435
use PrestaShopBundle\ApiPlatform\Metadata\CQRSCreate;
3536
use PrestaShopBundle\ApiPlatform\Metadata\CQRSDelete;
3637
use PrestaShopBundle\ApiPlatform\Metadata\CQRSGet;
@@ -209,7 +210,7 @@ class Product
209210
#[LocalizedValue]
210211
public array $availableLaterLabels;
211212

212-
public ?\DateTimeImmutable $availableDate = null;
213+
public ?DateImmutable $availableDate = null;
213214

214215
public string $coverThumbnailUrl;
215216

0 commit comments

Comments
 (0)