Skip to content

Commit 7de31b2

Browse files
committed
Allow the vendor name to be null on Product::$vendors
1 parent 5944839 commit 7de31b2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/DataTransferObject/Product/Product.php

+3-7
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,9 @@ public function __construct(
5252
public ?int $orderedByCustomers = null,
5353
public ?bool $production = null,
5454
public ?bool $autoAssignLot = null,
55-
/**
56-
* @var list<array{name: string, vendorName: string}>|null
57-
*/
58-
public ?array $vendors = null,
59-
/**
60-
* @var list<string>|null
61-
*/
55+
/** @var list<array{name: string, vendorName: string|null}> */
56+
public array $vendors = [],
57+
/** @var list<string>|null */
6258
public ?array $allowedAreas = null,
6359
public ?string $dangerousGoodsClass = null,
6460
public ?string $size = null,

0 commit comments

Comments
 (0)