Skip to content

Commit

Permalink
OP-558 - added null handling in address retrieval method
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Feb 7, 2025
1 parent 9f6f728 commit 6265e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converter/FraudSuspicionCommonModelConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function convertOrderObject(OrderInterface $order, string $addressType):
);
}

private function getAddressFromOrder(OrderInterface $order, string $addressType): AddressInterface
private function getAddressFromOrder(OrderInterface $order, string $addressType): ?AddressInterface
{
return match ($addressType) {
FraudSuspicion::BILLING_ADDRESS_TYPE => $order->getBillingAddress(),
Expand Down

0 comments on commit 6265e50

Please sign in to comment.