Skip to content

Commit

Permalink
use null coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat authored Dec 14, 2023
1 parent f6688ff commit 5baaa16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function isCartRuleValid(
}

$maxUsagePerCode = $configuration['maxUsagePerCode'];
$maxUsagePerUser = $configuration['maxUsagePerUser'] ?: null;
$maxUsagePerUser = $configuration['maxUsagePerUser'] ?? null;
$onlyOnePerCart = $configuration['onlyOnePerCart'];

$storedCode = $this->voucherCodeRepository->findByCode($voucher->getCode());
Expand Down

0 comments on commit 5baaa16

Please sign in to comment.