We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ec20da commit 85fa974Copy full SHA for 85fa974
src/elements/Order.php
@@ -1391,7 +1391,7 @@ public function beforeValidate(): bool
1391
if (!$this->gatewayId && !$this->paymentSourceId) {
1392
$gateways = Plugin::getInstance()->getGateways()->getAllCustomerEnabledGateways();
1393
if ($gateways->isNotEmpty()) {
1394
- $gateway = $gateways->filter(fn (GatewayInterface $g) => $g->availableForUseWithOrder($this))->first();
+ $gateway = $gateways->filter(fn(GatewayInterface $g) => $g->availableForUseWithOrder($this))->first();
1395
1396
if ($gateway) {
1397
$this->gatewayId = $gateway->id;
0 commit comments