From 1cfa890ce088f82b1bd0d343f95dd75b0c714260 Mon Sep 17 00:00:00 2001 From: Fulvio Notarstefano Date: Thu, 26 Sep 2024 10:19:11 +0900 Subject: [PATCH] Cast filter as bool --- .../payment-gateway/class-sv-wc-payment-gateway-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php b/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php index 2c8eb7263..a2c6634c0 100644 --- a/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php +++ b/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php @@ -1379,7 +1379,7 @@ public function is_subscriptions_active() : bool { * * @param bool $subscriptions_active */ - return apply_filters( 'sv_wc_payment_gateway_is_subscriptions_active', $this->subscriptions_active ); + return (bool) apply_filters( 'sv_wc_payment_gateway_is_subscriptions_active', $this->subscriptions_active ); }