From c394ac80c11a3eb54d03f1576689e166316e998c Mon Sep 17 00:00:00 2001 From: Laramie Rugen Date: Tue, 11 Oct 2022 11:57:04 -0400 Subject: [PATCH] Fixed a few minor depreciation warnings on php8.1 --- src/Gateways/PorticoConnector.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Gateways/PorticoConnector.php b/src/Gateways/PorticoConnector.php index c57c3ba9..2e2cf4df 100644 --- a/src/Gateways/PorticoConnector.php +++ b/src/Gateways/PorticoConnector.php @@ -1996,16 +1996,16 @@ protected function hydrateHolder(DOMDocument $xml, BaseBuilder $builder, $isChec if ($builder->billingAddress !== null) { $holder->appendChild( - $xml->createElement($isCheck ? 'Address1' : 'CardHolderAddr', htmlentities($builder->billingAddress->streetAddress1)) + $xml->createElement($isCheck ? 'Address1' : 'CardHolderAddr', htmlentities($builder->billingAddress->streetAddress1 ?? '')) ); $holder->appendChild( - $xml->createElement($isCheck ? 'City' : 'CardHolderCity', htmlentities($builder->billingAddress->city)) + $xml->createElement($isCheck ? 'City' : 'CardHolderCity', htmlentities($builder->billingAddress->city ?? '')) ); $holder->appendChild( - $xml->createElement($isCheck ? 'State' : 'CardHolderState', $builder->billingAddress->getProvince()) + $xml->createElement($isCheck ? 'State' : 'CardHolderState', $builder->billingAddress->getProvince() ?? '') ); $holder->appendChild( - $xml->createElement($isCheck ? 'Zip' : 'CardHolderZip', $address->checkZipCode($builder->billingAddress->postalCode)) + $xml->createElement($isCheck ? 'Zip' : 'CardHolderZip', $address->checkZipCode($builder->billingAddress->postalCode) ?? '') ); }