mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Call parent constructor before methods
This commit is contained in:
parent
292e48942e
commit
647a0f3c32
1 changed files with 2 additions and 3 deletions
|
@ -29,7 +29,6 @@ class WcGateway extends WcGatewayBase implements WcGatewayInterface
|
|||
OrderFactory $orderFactory,
|
||||
SettingsFields $settingsFields
|
||||
) {
|
||||
|
||||
$this->sessionHandler = $sessionHandler;
|
||||
$this->cartRepository = $cartRepository;
|
||||
$this->endpoint = $endpoint;
|
||||
|
@ -42,6 +41,8 @@ class WcGateway extends WcGatewayBase implements WcGatewayInterface
|
|||
'woocommerce-paypal-gateway'
|
||||
);
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->title = $this->get_option('title');
|
||||
$this->description = $this->get_option('description');
|
||||
|
||||
|
@ -55,8 +56,6 @@ class WcGateway extends WcGatewayBase implements WcGatewayInterface
|
|||
'process_admin_options',
|
||||
]
|
||||
);
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function init_form_fields()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue