mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Param types removed to avoid third-party issues
This commit is contained in:
parent
a0472e3a6a
commit
a448f98b3f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue