diff --git a/modules/ppcp-axo/services.php b/modules/ppcp-axo/services.php index cf37030d0..3700b4bbb 100644 --- a/modules/ppcp-axo/services.php +++ b/modules/ppcp-axo/services.php @@ -196,10 +196,7 @@ return array( $compatibility_checker = $container->get( 'axo.helpers.compatibility-checker' ); assert( $compatibility_checker instanceof CompatibilityChecker ); - $settings = $container->get( 'wcgateway.settings' ); - assert( $settings instanceof Settings ); - - return $compatibility_checker->generate_settings_conflict_notice( $settings ); + return $compatibility_checker->generate_settings_conflict_notice(); }, 'axo.checkout-config-notice' => static function ( ContainerInterface $container ) : string { diff --git a/modules/ppcp-axo/src/Helper/CompatibilityChecker.php b/modules/ppcp-axo/src/Helper/CompatibilityChecker.php index 161d2a3bd..e8d8595c3 100644 --- a/modules/ppcp-axo/src/Helper/CompatibilityChecker.php +++ b/modules/ppcp-axo/src/Helper/CompatibilityChecker.php @@ -223,11 +223,10 @@ class CompatibilityChecker { /** * Generates a warning notice with instructions on conflicting plugin-internal settings. * - * @param Settings $settings The plugin settings container, which is checked for conflicting values. * @param bool $raw_message Whether to return raw message without HTML wrappers. * @return string */ - public function generate_settings_conflict_notice( Settings $settings, bool $raw_message = false ) : string { + public function generate_settings_conflict_notice( bool $raw_message = false ) : string { if ( $this->dcc_configuration->is_enabled() ) { return ''; }