diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php index ede1b13ce..ac4f31559 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php @@ -291,6 +291,11 @@ class PayUponInvoice { add_action( 'woocommerce_email_before_order_table', + /** + * WC_Email type removed to avoid third-party issues. + * + * @psalm-suppress MissingClosureParamType + */ function( WC_Order $order, bool $sent_to_admin, bool $plain_text, $email ) { if ( ! $sent_to_admin