diff --git a/changelog/fix-unnecessary-import-warning b/changelog/fix-unnecessary-import-warning new file mode 100644 index 00000000000..e13b9c06bbc --- /dev/null +++ b/changelog/fix-unnecessary-import-warning @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Remove unnecessary import statement which leads to a warning when first loaded diff --git a/includes/class-wc-payments-payment-method-messaging-element.php b/includes/class-wc-payments-payment-method-messaging-element.php index 3d951d13cc5..93996df7d3d 100644 --- a/includes/class-wc-payments-payment-method-messaging-element.php +++ b/includes/class-wc-payments-payment-method-messaging-element.php @@ -10,7 +10,6 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } -use WC_Payment_Gateway_WCPay; /** * WC_Payments_Payment_Method_Messaging_Element class. */ @@ -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; }