From b6f50a584de16e8086b1aa13e1c556d779641db6 Mon Sep 17 00:00:00 2001 From: Jason Kytros Date: Fri, 2 Feb 2024 11:40:33 +0200 Subject: [PATCH] Added compatibility with PHP 8.3 --- includes/class-wc-gateway-dummy.php | 16 +++++++++++++++- woocommerce-gateway-dummy.php | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-gateway-dummy.php b/includes/class-wc-gateway-dummy.php index 89ebddc..17f9b60 100644 --- a/includes/class-wc-gateway-dummy.php +++ b/includes/class-wc-gateway-dummy.php @@ -16,10 +16,24 @@ * Dummy Gateway. * * @class WC_Gateway_Dummy - * @version 1.0.5 + * @version 1.0.7 */ class WC_Gateway_Dummy extends WC_Payment_Gateway { + /** + * Payment gateway instructions. + * @var string + * + */ + protected $instructions; + + /** + * Whether the gateway is visible for non-admin users. + * @var boolean + * + */ + protected $hide_for_non_admin_users; + /** * Constructor for the gateway. */ diff --git a/woocommerce-gateway-dummy.php b/woocommerce-gateway-dummy.php index 35df559..38da683 100644 --- a/woocommerce-gateway-dummy.php +++ b/woocommerce-gateway-dummy.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Dummy Payments Gateway * Plugin URI: https://somewherewarm.com/ * Description: Adds the Dummy Payments gateway to your WooCommerce website. - * Version: 1.0.6 + * Version: 1.0.7 * * Author: SomewhereWarm * Author URI: https://somewherewarm.com/