mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix psalm
This commit is contained in:
parent
8df754fc35
commit
5923aeb8b2
1 changed files with 5 additions and 0 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue