Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Revert "fix: avoid duplicates in order's owner check"
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervanhooft authored Oct 28, 2020
1 parent b55ae9e commit a113515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Order/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static function createFromItems(OrderItemCollection $items, $overrides =
throw new LogicException('Creating an order requires items to have a single currency.');
}

if($items->owners()->unique('id')->count() > 1) {
if($items->owners()->count() > 1) {
throw new LogicException('Creating an order requires items to have a single owner.');
}

Expand Down

0 comments on commit a113515

Please sign in to comment.