Fix CI errors

This commit is contained in:
dinamiko 2022-01-03 15:15:33 +01:00
parent 2c0a7596e5
commit d33ca00ac7
6 changed files with 33 additions and 15 deletions

View file

@ -120,7 +120,7 @@ return array(
'wcgateway.disabler' => static function ( ContainerInterface $container ): DisableGateways {
$session_handler = $container->get( 'session.handler' );
$settings = $container->get( 'wcgateway.settings' );
return new DisableGateways( $session_handler, $settings);
return new DisableGateways( $session_handler, $settings );
},
'wcgateway.is-wc-payments-page' => static function ( ContainerInterface $container ): bool {
$page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : '';

View file

@ -44,8 +44,8 @@ class DisableGateways {
ContainerInterface $settings
) {
$this->session_handler = $session_handler;
$this->settings = $settings;
$this->session_handler = $session_handler;
$this->settings = $settings;
}
/**