Sage 10 with woocommerce payments issues

I am using the Roots Sage 10 theme. I have activated Woocommerce using generoi/woocommerce package with no issues. My issue is when I enable Woocommerce payments, I get the following error:

Deprecated : Return type of MyCLabs\Enum\Enum::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in [DIR]app/bedrock/web/app/plugins/woocommerce-payments/vendor/myclabs/php-enum/src/Enum.php on line 246

Does anybody have any clue where this is coming from?

What version of PHP are you running? It looks like you might have to either update the plugin or downgrade your PHP (I’d hope 8.0 would suffice).

Using 8.1.9, I will try to downgrade. Looks like client is using Moneris so I am safe here. But hoping to get figured for later. I have contacted the plugin devs to see what they think.