From 10d2023d43ab1c84bd4dd8b42ff4b35045b6b3d1 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Fri, 21 Feb 2025 15:17:55 +0400 Subject: [PATCH] Fix the tests --- modules/ppcp-wc-gateway/src/Settings/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Settings/Settings.php b/modules/ppcp-wc-gateway/src/Settings/Settings.php index 0e71dd3b8..920d411e8 100644 --- a/modules/ppcp-wc-gateway/src/Settings/Settings.php +++ b/modules/ppcp-wc-gateway/src/Settings/Settings.php @@ -159,7 +159,7 @@ class Settings implements ContainerInterface { if ( $this->settings ) { return false; } - $this->settings = get_option( self::KEY, array() ); + $this->settings = (array) get_option( self::KEY, array() ); $defaults = array( 'title' => __( 'PayPal', 'woocommerce-paypal-payments' ),