Fix Psalm error

This commit is contained in:
Daniel Dudzic 2024-05-29 22:35:48 +02:00
parent 14b20a6962
commit e91e5e718d
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -348,7 +348,7 @@ class CompatModule implements ModuleInterface {
add_filter(
'woocommerce_paypal_payments_context',
function ( $context ): string {
function ( string $context ): string {
// Default context.
return ( 'mini-cart' === $context ) ? 'checkout' : $context;
}