diff --git a/changelog.txt b/changelog.txt index f01188e9862..7f7a0586120 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,7 @@ *** WooPayments Changelog *** += 6.7.1 - 2023-11-03 = + = 6.7.0 - 2023-11-01 = * Add - Added an internal logger class, meant for use by classes within src. * Add - Added Authorizations reporting endpoint. diff --git a/changelog/hotfix-use-logger-interface-instead-of-concrete-logger-class b/changelog/hotfix-use-logger-interface-instead-of-concrete-logger-class new file mode 100644 index 00000000000..10a864550b2 --- /dev/null +++ b/changelog/hotfix-use-logger-interface-instead-of-concrete-logger-class @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Replaced the concrete logging class with a logger interface diff --git a/package-lock.json b/package-lock.json index 60b3f0f5012..32e6bb5bfa6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "woocommerce-payments", - "version": "6.7.0", + "version": "6.7.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "woocommerce-payments", - "version": "6.7.0", + "version": "6.7.1", "hasInstallScript": true, "license": "GPL-3.0-or-later", "dependencies": { diff --git a/package.json b/package.json index b44b536a425..76aaea4eaf2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woocommerce-payments", - "version": "6.7.0", + "version": "6.7.1", "main": "webpack.config.js", "author": "Automattic", "license": "GPL-3.0-or-later", diff --git a/readme.txt b/readme.txt index 48b3d47cb50..a91ae4f904f 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: woocommerce payments, apple pay, credit card, google pay, payment, payment Requires at least: 6.0 Tested up to: 6.3 Requires PHP: 7.3 -Stable tag: 6.7.0 +Stable tag: 6.7.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -94,6 +94,9 @@ Please note that our support for the checkout block is still experimental and th == Changelog == += 6.7.1 - 2023-11-03 = + + = 6.7.0 - 2023-11-01 = * Add - Added an internal logger class, meant for use by classes within src. * Add - Added Authorizations reporting endpoint. diff --git a/src/Internal/Logger.php b/src/Internal/Logger.php index 5373b921011..517f9f2fd6d 100644 --- a/src/Internal/Logger.php +++ b/src/Internal/Logger.php @@ -8,8 +8,8 @@ namespace WCPay\Internal; use Exception; -use WC_Logger; use WC_Log_Levels; +use WC_Logger_Interface; use WC_Payment_Gateway_WCPay; use WCPay\Core\Mode; @@ -21,9 +21,9 @@ class Logger { const LOG_FILENAME = 'woocommerce-payments'; /** - * The holding property for our WC_Logger instance. + * The holding property for our WC_Logger_Interface instance. * - * @var WC_Logger $logger + * @var WC_Logger_Interface $logger */ private $wc_logger; @@ -44,11 +44,11 @@ class Logger { /** * Logger constructor. * - * @param WC_Logger $wc_logger WC_Logger. + * @param WC_Logger_Interface $wc_logger WC_Logger_Interface. * @param Mode $mode Mode. * @param WC_Payment_Gateway_WCPay $gateway WC_Payment_Gateway_WCPay. */ - public function __construct( WC_Logger $wc_logger, Mode $mode, WC_Payment_Gateway_WCPay $gateway ) { + public function __construct( WC_Logger_Interface $wc_logger, Mode $mode, WC_Payment_Gateway_WCPay $gateway ) { $this->wc_logger = $wc_logger; $this->mode = $mode; $this->gateway = $gateway; diff --git a/woocommerce-payments.php b/woocommerce-payments.php index dc1c70de4b4..cc7262a55a3 100644 --- a/woocommerce-payments.php +++ b/woocommerce-payments.php @@ -12,7 +12,7 @@ * WC tested up to: 8.2.0 * Requires at least: 6.0 * Requires PHP: 7.3 - * Version: 6.7.0 + * Version: 6.7.1 * * @package WooCommerce\Payments */