Skip to content

Commit

Permalink
Fix compatibility with php 8.0 and newer in convertCustomerAddressToA…
Browse files Browse the repository at this point in the history
…vaTaxAddress
  • Loading branch information
Polar77 committed Sep 22, 2022
1 parent ed42790 commit ae3ac36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Framework/Interaction/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,11 @@ public function getAddress($data)
*
* @param \Magento\Customer\Api\Data\AddressInterface|\Magento\Quote\Api\Data\AddressInterface $address
* @return \Magento\Framework\DataObject
* @throws LocalizedException
*/
public function convertCustomerAddressToAvaTaxAddress($address)
{
$street = $address->getStreet();
$street = $address->getStreet() ?? [];

$data = [
'line_1' => array_key_exists(0, $street) ? $street[0] : '',
Expand Down

0 comments on commit ae3ac36

Please sign in to comment.