GiveWP throws deprecation notices for PHP 8.1
Stephanie Liy
As of version 2.23.2, GiveWP throws the following deprecation notices:
Deprecated: Return type of Give\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/givewp/public/wp-content/plugins/give/src/Container/Container.php on line 1164
Deprecated: Return type of Give\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/givewp/public/wp-content/plugins/give/src/Container/Container.php on line 1176
Deprecated: Return type of Give\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/givewp/public/wp-content/plugins/give/src/Container/Container.php on line 1189
Rick Alday
It's also throwing this notice:
PHP 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 /wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php on line 200