MGH-424 easycredit fix: cast oxdesc to string, may be object
This commit is contained in:
@ -4,10 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace D3\GoogleAnalytics4\Modules\Application\Model;
|
||||
|
||||
|
||||
use OxidEsales\Eshop\Application\Model\Payment;
|
||||
use OxidEsales\Eshop\Core\Registry;
|
||||
|
||||
class gtmPayment extends gtmPayment_parent
|
||||
{
|
||||
/**
|
||||
@ -15,6 +11,6 @@ class gtmPayment extends gtmPayment_parent
|
||||
*/
|
||||
public function gtmGetSelectedPaymentName() :string
|
||||
{
|
||||
return $this->getFieldData('oxpayments__oxdesc')?: 'No payment name available';
|
||||
return (string)$this->getFieldData('oxpayments__oxdesc')?: 'No payment name available';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user