Skip to content

Commit

Permalink
Merge trunk v6.7.1 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
botwoo committed Nov 3, 2023
2 parents a5cabd0 + 3597b3f commit 77c1e9b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Replaced the concrete logging class with a logger interface
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions src/Internal/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 77c1e9b

Please sign in to comment.