Fix psalm

This commit is contained in:
Emili Castells Guasch 2024-08-21 11:46:29 +02:00
parent 8df754fc35
commit 5923aeb8b2

View file

@ -108,6 +108,11 @@ class LocalAlternativePaymentMethodsModule implements ModuleInterface {
add_action(
'woocommerce_before_thankyou',
/**
* Activate is_checkout() on woocommerce/classic-shortcode checkout blocks.
*
* @psalm-suppress MissingClosureParamType
*/
function( $order_id ) {
$order = wc_get_order( $order_id );
if ( ! $order instanceof WC_Order ) {