♻️ Remove an unused param to avoid confusion

The DCC status is not defered from the Settings instance, but from the specific DCCGatewayConfiguration service.
This commit is contained in:
Philipp Stracker 2025-03-14 11:42:41 +01:00
parent 16b4e235f2
commit a39edd0225
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View file

@ -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 {

View file

@ -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 '';
}