add missing defaults

This commit is contained in:
karneaud 2024-07-29 22:10:18 -04:00
parent 7d9bc7adf2
commit 2fd38ca2f6
2 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,7 @@ class AccountComponent extends Component
public function render()
{
return render('gateways.rotessa.components.account', array_merge($this->attributes->getAttributes(), $this->defaults) );
return render('gateways.rotessa.components.account', $this->attributes->getAttributes() + $this->defaults);
}
}

View File

@ -43,6 +43,6 @@ class AddressComponent extends Component
public function render()
{
return render('gateways.rotessa.components.address',array_merge( $this->defaults, $this->attributes->getAttributes() ) );
return render('gateways.rotessa.components.address', $this->attributes->getAttributes() + $this->defaults );
}
}