From 6e575acd2210503dcfa24b677c35697e2860e446 Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Wed, 22 May 2024 00:03:43 +0200 Subject: [PATCH] Fix AXO psalm errors --- modules/ppcp-axo/src/Assets/AxoManager.php | 2 +- modules/ppcp-blocks/extensions.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/ppcp-axo/src/Assets/AxoManager.php b/modules/ppcp-axo/src/Assets/AxoManager.php index 2ed5fc04c..d9b4313fc 100644 --- a/modules/ppcp-axo/src/Assets/AxoManager.php +++ b/modules/ppcp-axo/src/Assets/AxoManager.php @@ -197,7 +197,7 @@ class AxoManager { 'CA' => WC()->countries->get_states( 'CA' ), ), ), - 'module_url' => untrailingslashit( $this->module_url ), + 'module_url' => untrailingslashit( $this->module_url ), ); } diff --git a/modules/ppcp-blocks/extensions.php b/modules/ppcp-blocks/extensions.php index c2b607780..2409d1bbc 100644 --- a/modules/ppcp-blocks/extensions.php +++ b/modules/ppcp-blocks/extensions.php @@ -54,10 +54,11 @@ return array( $subscription_helper = $container->get( 'wc-subscriptions.helper' ); if ( $subscription_helper->plugin_is_active() ) { - $label .= __( - '

Important: Cannot be deactivated while the WooCommerce Subscriptions plugin is active.

', + $notice_content = __( + 'Important: Cannot be deactivated while the WooCommerce Subscriptions plugin is active.', 'woocommerce-paypal-payments' ); + $label .= '

' . $notice_content . '

'; } $should_disable_checkbox = $subscription_helper->plugin_is_active() || apply_filters( 'woocommerce_paypal_payments_toggle_final_review_checkbox', false );