We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091f258 commit d55bc38Copy full SHA for d55bc38
src/Actions/CustomerPrice.php
@@ -30,7 +30,7 @@ public function getCustomerPrice(int $productId, int $customerId, int $quantity
30
31
usort(
32
$customerPrices,
33
- fn (CustomerPricing $a, CustomerPricing $b): bool => $a->getData('quantity') < $b->getData('quantity')
+ fn (CustomerPricing $a, CustomerPricing $b): int => $a->getData('quantity') <=> $b->getData('quantity')
34
);
35
36
foreach ($customerPrices as $price) {
0 commit comments