Fix psalm

This commit is contained in:
emilicastells 2022-11-17 15:43:15 +01:00
parent 83b2179aaf
commit 8584322da3
No known key found for this signature in database
GPG key ID: 1520C07081754570

View file

@ -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