Skip to content

Commit

Permalink
Allow the Product::$vendors to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Dec 11, 2024
1 parent 7de31b2 commit 022aae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataTransferObject/Product/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ 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 = [],
/** @var list<array{name: string, vendorName: string|null}>|null */
public ?array $vendors = null,
/** @var list<string>|null */
public ?array $allowedAreas = null,
public ?string $dangerousGoodsClass = null,
Expand Down

0 comments on commit 022aae7

Please sign in to comment.