From f90c4aa9dfe78a4f3e7a1d1ad7cb409a00056e2c Mon Sep 17 00:00:00 2001 From: Antony Thorpe <1023740+AntonyThorpe@users.noreply.github.com> Date: Fri, 15 Dec 2023 21:55:22 +1300 Subject: [PATCH] Update Order.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FIX PHP 8.2 warning of a future depreciation, “PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead” --- src/Model/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Order.php b/src/Model/Order.php index e157da4b..64c1f35e 100644 --- a/src/Model/Order.php +++ b/src/Model/Order.php @@ -707,7 +707,7 @@ protected function getAddress($type) $address = $this->getComponent($type . 'Address'); if (!$address || !$address->exists() && $this->Member()) { - $address = $this->Member()->{"Default${type}Address"}(); + $address = $this->Member()->{"Default{$type}Address"}(); } if (empty($address->Surname) && empty($address->FirstName)) {