File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -248,11 +248,11 @@ private function getOrderId(): int
248
248
$ creditmemoId = $ this ->request ->getParam ('creditmemo_id ' );
249
249
$ invoiceId = $ this ->request ->getParam ('invoice_id ' );
250
250
if ($ invoiceId ) {
251
- return $ this ->invoiceRepository ->get ($ invoiceId )->getOrderId ();
251
+ return ( int ) $ this ->invoiceRepository ->get ($ invoiceId )->getOrderId ();
252
252
} elseif ($ shipmentId ) {
253
- return $ this ->shipmentRepository ->get ($ shipmentId )->getOrderId ();
253
+ return ( int ) $ this ->shipmentRepository ->get ($ shipmentId )->getOrderId ();
254
254
} elseif ($ creditmemoId ) {
255
- return $ this ->creditmemoRepository ->get ($ creditmemoId )->getOrderId ();
255
+ return ( int ) $ this ->creditmemoRepository ->get ($ creditmemoId )->getOrderId ();
256
256
}
257
257
throw new LocalizedException (__ ('Unable to get Order ID. ' ));
258
258
}
You can’t perform that action at this time.
0 commit comments