Param types removed to avoid third-party issues

This commit is contained in:
emilicastells 2022-11-30 11:44:13 +01:00
parent a0472e3a6a
commit a448f98b3f
No known key found for this signature in database
GPG key ID: 1520C07081754570

View file

@ -81,12 +81,12 @@ class OXXO {
add_filter( add_filter(
'woocommerce_thankyou_order_received_text', 'woocommerce_thankyou_order_received_text',
/** /**
* Order can be null. * Param types removed to avoid third-party issues.
* *
* @psalm-suppress MissingClosureParamType * @psalm-suppress MissingClosureParamType
*/ */
function( string $message, $order ) { function( $message, $order ) {
if ( ! $order instanceof WC_Order ) { if ( ! is_string( $message ) || ! $order instanceof WC_Order ) {
return $message; return $message;
} }