Skip to content

Commit cf4e15d

Browse files
author
WEXO
committed
Fix commandExecutor interface mismatch
Fix commandExecutor interface mismatch
1 parent a5fa3af commit cf4e15d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Payment/Model/Method/Adapter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,14 @@ private function executeCommand($commandCode, array $arguments = [])
507507
return null;
508508
}
509509

510+
$payment = null;
510511
if (isset($arguments['payment'])) {
512+
$payment = $arguments['payment'];
511513
$arguments['payment'] = $this->paymentDataObjectFactory->create($arguments['payment']);
512514
}
513515

514516
if ($this->commandExecutor !== null) {
515-
return $this->commandExecutor->executeByCode($commandCode, $arguments);
517+
return $this->commandExecutor->executeByCode($commandCode, $payment, $arguments);
516518
}
517519

518520
if ($this->commandPool === null) {

0 commit comments

Comments
 (0)