protected function setComposedAttributes()
{
+ if (null === $this->billing_address) {
+ $this->billing_address = [];
+ }
+ $this->billing_address = array_merge(['name' => '', 'address' => '', 'postcode' => '', 'city' => '', 'country' => ''], $this->billing_address);
$billingAddress = ($this->billing_address['name'] ?: $this->name) . "\n";
$billingAddress .= ($this->billing_address['address'] ?: $this->address['address']) . "\n";
$billingAddress .= ($this->billing_address['postcode'] ?: $this->address['postcode']) . ' ' . ($this->billing_address['city'] ?: $this->address['city']) . "\n";