Skip to content

Commit

Permalink
moved array_values to an earlier point
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Oct 11, 2023
1 parent fde0cf9 commit 64c180b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/NetsEasyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function createPayment(Request $request): Response {
$paymentMethods = $request->get('paymentMethods');
$paymentMethodsConfiguration = array_map(
static fn ($name) => ['name' => $name, 'enabled' => TRUE],
array_values($paymentMethods)
$paymentMethods
);

if (!$callbackUrl || $amountToPay <= 0) {
Expand Down

0 comments on commit 64c180b

Please sign in to comment.