Merge pull request #32494 from woocommerce/fix/32154_payment_gateway_spec_warning

Fix PHP warning of missing default value in spec
This commit is contained in:
louwie17 2022-04-06 09:18:22 -03:00 committed by GitHub
commit 7d76d4a1a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class OptionRuleProcessor implements RuleProcessorInterface {
}
if ( isset( $rule->transformers ) && is_array( $rule->transformers ) ) {
$option_value = TransformerService::apply( $option_value, $rule->transformers, $rule->default );
$option_value = TransformerService::apply( $option_value, $rule->transformers, $default );
}
return ComparisonOperation::compare(