diff --git a/app/Http/ViewComposers/Components/Rotessa/AccountComponent.php b/app/Http/ViewComposers/Components/Rotessa/AccountComponent.php index 46e44dc330d1..e161b3a1216f 100644 --- a/app/Http/ViewComposers/Components/Rotessa/AccountComponent.php +++ b/app/Http/ViewComposers/Components/Rotessa/AccountComponent.php @@ -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); } } diff --git a/app/Http/ViewComposers/Components/Rotessa/AddressComponent.php b/app/Http/ViewComposers/Components/Rotessa/AddressComponent.php index 5b5afc1599e5..b26222b18c53 100644 --- a/app/Http/ViewComposers/Components/Rotessa/AddressComponent.php +++ b/app/Http/ViewComposers/Components/Rotessa/AddressComponent.php @@ -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 ); } }