Skip to content

Commit 6c4ff6b

Browse files
committed
ACP2E-694: [Magento Cloud] REST API intermittently over writes the results of shipping results
1 parent d8b48ab commit 6c4ff6b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/Sales/Model/RefundOrder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,9 @@ public function execute(
133133
\Magento\Sales\Api\Data\CreditmemoCommentCreationInterface $comment = null,
134134
\Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface $arguments = null
135135
) {
136-
// phpstan:ignore "File has calls static method. (phpStaticMethodCalls)"
137136
return $this->orderMutex->execute(
138137
(int) $orderId,
139-
\Closure::fromCallable([$this, 'createRefund']),
138+
\Closure::fromCallable([$this, 'createRefund']),// phpstan:ignore
140139
[
141140
$orderId,
142141
$items,

app/code/Magento/Sales/Model/ShipOrder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,9 @@ public function execute(
149149
array $packages = [],
150150
\Magento\Sales\Api\Data\ShipmentCreationArgumentsInterface $arguments = null
151151
) {
152-
// phpstan:ignore "File has calls static method. (phpStaticMethodCalls)"
153152
return $this->orderMutex->execute(
154153
(int)$orderId,
155-
\Closure::fromCallable([$this, 'createShipment']),
154+
\Closure::fromCallable([$this, 'createShipment']),// phpstan:ignore
156155
[
157156
$orderId,
158157
$items,

0 commit comments

Comments
 (0)