Skip to content

Commit

Permalink
Allow the vendor name to be null on Product::$vendors
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Dec 9, 2024
1 parent 5944839 commit 7de31b2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/DataTransferObject/Product/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,9 @@ public function __construct(
public ?int $orderedByCustomers = null,
public ?bool $production = null,
public ?bool $autoAssignLot = null,
/**
* @var list<array{name: string, vendorName: string}>|null
*/
public ?array $vendors = null,
/**
* @var list<string>|null
*/
/** @var list<array{name: string, vendorName: string|null}> */
public array $vendors = [],
/** @var list<string>|null */
public ?array $allowedAreas = null,
public ?string $dangerousGoodsClass = null,
public ?string $size = null,
Expand Down

0 comments on commit 7de31b2

Please sign in to comment.