Skip to content

Commit

Permalink
Fix unnecessary gateway import warning in BNPL messaging element class (
Browse files Browse the repository at this point in the history
#7977)

Co-authored-by: Timur Karimov <[email protected]>
  • Loading branch information
timur27 and Timur Karimov authored Jan 5, 2024
1 parent c02877a commit fc29bee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-unnecessary-import-warning
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Remove unnecessary import statement which leads to a warning when first loaded
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use WC_Payment_Gateway_WCPay;
/**
* WC_Payments_Payment_Method_Messaging_Element class.
*/
Expand All @@ -35,7 +34,7 @@ class WC_Payments_Payment_Method_Messaging_Element {
* @param WC_Payment_Gateway_WCPay $gateway Gateway instance.
* @return void
*/
public function __construct( WC_Payments_Account $account, $gateway ) {
public function __construct( WC_Payments_Account $account, WC_Payment_Gateway_WCPay $gateway ) {
$this->account = $account;
$this->gateway = $gateway;
}
Expand Down

0 comments on commit fc29bee

Please sign in to comment.