Skip to content

Commit d55bc38

Browse files
committed
Fix usort deprecation
1 parent 091f258 commit d55bc38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Actions/CustomerPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getCustomerPrice(int $productId, int $customerId, int $quantity
3030

3131
usort(
3232
$customerPrices,
33-
fn (CustomerPricing $a, CustomerPricing $b): bool => $a->getData('quantity') < $b->getData('quantity')
33+
fn (CustomerPricing $a, CustomerPricing $b): int => $a->getData('quantity') <=> $b->getData('quantity')
3434
);
3535

3636
foreach ($customerPrices as $price) {

0 commit comments

Comments
 (0)