PHP 8.1 deprecated codes #1745
Labels
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
type: technical debt
This issue/PR represents/solves the technical debt of the project.
Hi there,
I use PHP 8.1 and latest versions of WP and WC.
Here is the error I got with Qery monitor plugin.
Deprecated Return type of Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\ISO3166\ISO3166::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice 1
wp-content/plugins/google-listings-and-ads/vendor/league/iso3166/src/ISO3166.php:111
Plugin: google-listings-and-ads
Deprecated Return type of Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\ISO3166\ISO3166::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice 1
wp-content/plugins/google-listings-and-ads/vendor/league/iso3166/src/ISO3166.php:123
Plugin: google-listings-and-ads
The text was updated successfully, but these errors were encountered: