Skip to content

Commit 022aae7

Browse files
committed
Allow the Product::$vendors to be null
1 parent 7de31b2 commit 022aae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DataTransferObject/Product/Product.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function __construct(
5252
public ?int $orderedByCustomers = null,
5353
public ?bool $production = null,
5454
public ?bool $autoAssignLot = null,
55-
/** @var list<array{name: string, vendorName: string|null}> */
56-
public array $vendors = [],
55+
/** @var list<array{name: string, vendorName: string|null}>|null */
56+
public ?array $vendors = null,
5757
/** @var list<string>|null */
5858
public ?array $allowedAreas = null,
5959
public ?string $dangerousGoodsClass = null,

0 commit comments

Comments
 (0)